Explorar o código

* Reset another bot's count when it quits IRC

Bryan Drewery %!s(int64=16) %!d(string=hai) anos
pai
achega
df134b9634
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/mod/irc.mod/chan.c

+ 2 - 0
src/mod/irc.mod/chan.c

@@ -3066,6 +3066,8 @@ static int gotquit(char *from, char *msg)
       member_getuser(m);
       u = m->user;
       if (u) {
+        if (u->bot)
+          counter_clear(u->handle);
         set_handle_laston(chan->dname, u, now); /* If you remove this, the bot will crash when the user record in question
 						   is removed/modified during the tcl binds below, and the users was on more
 						   than one monitored channel */