summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2016-10-01 10:49:11 -0400
committerAdam <Adam@anope.org>2016-10-01 10:49:48 -0400
commit0fc791dce35df8281777065da0e1f36950d8db1a (patch)
tree5ac6e04e0f112682c35a12927960b16746773495
parentb9436b12991c7a74fa539f8abee4af6d5a65dbba (diff)
Apply regex sqlines on connect too
-rw-r--r--modules/operserv/main/operserv.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/operserv/main/operserv.cpp b/modules/operserv/main/operserv.cpp
index cd66482df..afed0783f 100644
--- a/modules/operserv/main/operserv.cpp
+++ b/modules/operserv/main/operserv.cpp
@@ -100,7 +100,10 @@ class SQLineManager : public XLineManager
u->Kill(Config->GetClient("OperServ"), "Q-Lined: " + x->GetReason());
}
else if (x->IsRegex())
- ;
+ {
+ if (u)
+ u->Kill(Config->GetClient("OperServ"), "Q-Lined: " + x->GetReason());
+ }
else if (x->GetMask()[0] != '#' || IRCD->CanSQLineChannel)
IRCD->SendSQLine(u, x);
}