diff options
| author | 2009-11-21 16:33:40 +0000 | |
|---|---|---|
| committer | 2009-11-21 16:33:40 +0000 | |
| commit | bc2fd4a3278ff8f18e86e5454e9062f2214c178b (patch) | |
| tree | b82188abc05eb29da1bbb4d18f3d07a5d7ed8749 | |
| parent | Fix failed oper snomask being sent to local oper sno on remote servers (diff) | |
backport r12164, fixes bug #921 reported by Sm0ke0ut
git-svn-id: http://svn.inspircd.org/repository/branches/1_2_stable@12166 e03df62e-2008-0410-955e-edbf42e46eb7
| -rw-r--r-- | src/modules/m_banredirect.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/modules/m_banredirect.cpp b/src/modules/m_banredirect.cpp index f3f68bc7b..9bbc00779 100644 --- a/src/modules/m_banredirect.cpp +++ b/src/modules/m_banredirect.cpp @@ -85,9 +85,13 @@ class BanRedirect : public ModeWatcher start_pos = curr+1; break; case '#': - mask[current].assign(start_pos, curr); - current = CHAN; - start_pos = curr; + /* bug #921: don't barf when redirecting to ## channels */ + if (current != CHAN) + { + mask[current].assign(start_pos, curr); + current = CHAN; + start_pos = curr; + } break; } } |
