]> jfr.im git - irc/quakenet/newserv.git/commitdiff
glines: Fix critical bug in the block command (<3 pils).
authorGunnar Beutner <redacted>
Tue, 6 Aug 2013 21:10:49 +0000 (23:10 +0200)
committerGunnar Beutner <redacted>
Tue, 6 Aug 2013 21:10:49 +0000 (23:10 +0200)
glines/glines_commands.c

index 4e814cef242f02c0534134bdfe4f0168acd7ad8b..0941887f3eb7d78522d52f00fb934bf67e3bcd48 100644 (file)
@@ -110,7 +110,7 @@ static int glines_cmdblock(void *source, int cargc, char **cargv) {
 
   wnp = &ww->nick;
 
-  if (IsService(wnp) || IsOper(wnp) || NickOnServiceServer(wnp)) {
+  if (sender != target && (IsService(wnp) || IsOper(wnp) || NickOnServiceServer(wnp))) {
     controlreply(sender, "Target user '%s' is an oper or a service. Not setting G-Lines.", wnp->nick);
     return CMD_ERROR;
   }