From 7d69810b84f7b38eb9bca8d610bf209efcf022fc Mon Sep 17 00:00:00 2001 From: dz Date: Sat, 21 Nov 2009 16:05:57 +0000 Subject: allow channels starting with ## in m_banredirect.cpp, fixes bug #921 reported by Sm0ke0ut git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12164 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_banredirect.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/modules/m_banredirect.cpp b/src/modules/m_banredirect.cpp index cf6c27828..e2346b1d3 100644 --- a/src/modules/m_banredirect.cpp +++ b/src/modules/m_banredirect.cpp @@ -86,9 +86,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; } } -- cgit v1.2.3