[eggheads-patches] Tiny fix

Markos M. markos at p0w3r.org
Thu Nov 28 08:13:00 CST 2002


Hey ppl,

This lil patch fixes a bug in cmd_kick and cmd_kickban functions... 
Specifically, if the victim is a bot, eggdrop checks to see if the bot has 
global or channel owner access(!), when it should check the access of the 
user issuing the commands. That's all :P Keep up the good work ppl ;)

Markos Markoulis (The_Dawn)

-------------- next part --------------
Only in eggdrop1.6.13: Makefile
diff -bur eggdrop1.6.13/src/mod/irc.mod/cmdsirc.c eggdrop1.6.13-kickfix/src/mod/irc.mod/cmdsirc.c
--- eggdrop1.6.13/src/mod/irc.mod/cmdsirc.c	Sat Nov 23 00:45:00 2002
+++ eggdrop1.6.13-kickfix/src/mod/irc.mod/cmdsirc.c	Thu Nov 28 15:44:23 2002
@@ -236,7 +236,7 @@
     dprintf(idx, "%s is a %s master.\n", nick, chan->dname);
     return;
   }
-  if (glob_bot(victim) && !(glob_owner(victim) || chan_owner(victim))) {
+  if (glob_bot(victim) && !(glob_owner(user) || chan_owner(user))) {
     dprintf(idx, "%s is another channel bot!\n", nick);
     return;
   }
@@ -604,7 +604,7 @@
     dprintf(idx, "%s is a %s master.\n", nick, chan->dname);
     return;
   }
-  if (glob_bot(victim) && !(glob_owner(victim) || chan_owner(victim))) {
+  if (glob_bot(victim) && !(glob_owner(user) || chan_owner(user))) {
     dprintf(idx, "%s is another channel bot!\n", nick);
     return;
   }


More information about the Patches mailing list