浏览代码

* Reset another bot's count when it quits IRC

Bryan Drewery 16 年之前
父节点
当前提交
df134b9634
共有 1 个文件被更改,包括 2 次插入0 次删除
  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 */