浏览代码

* Port [3516] to 1.2.14
* Fix broken ISON from [3371]
* Fix erroneus nickname rotating/grabbing



svn: 3517

Bryan Drewery 19 年之前
父节点
当前提交
c4fee60591
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 2 2
      src/main.c
  2. 2 2
      src/mod/server.mod/servmsg.c

+ 2 - 2
src/main.c

@@ -469,7 +469,7 @@ static void core_secondly()
 #endif /* CRAZY_TRACE */
 #endif /* CRAZY_TRACE */
   if (fork_interval && backgrd && ((now - lastfork) > fork_interval))
   if (fork_interval && backgrd && ((now - lastfork) > fork_interval))
       do_fork();
       do_fork();
-  cnt++;
+  ++cnt;
 
 
   if ((cnt % 30) == 0) {
   if ((cnt % 30) == 0) {
     autolink_cycle(NULL);         /* attempt autolinks */
     autolink_cycle(NULL);         /* attempt autolinks */
@@ -483,7 +483,7 @@ static void core_secondly()
       server_send_ison();
       server_send_ison();
       ison_cnt = 0;
       ison_cnt = 0;
     } else
     } else
-      ison_cnt++;
+      ++ison_cnt;
   }
   }
 
 
   egg_memcpy(&nowtm, gmtime(&now), sizeof(struct tm));
   egg_memcpy(&nowtm, gmtime(&now), sizeof(struct tm));

+ 2 - 2
src/mod/server.mod/servmsg.c

@@ -770,7 +770,7 @@ static void got303(char *from, char *msg)
   newsplit(&msg);
   newsplit(&msg);
   fixcolon(msg);
   fixcolon(msg);
   tmp = newsplit(&msg);
   tmp = newsplit(&msg);
-  if (tmp[0] && !match_my_nick(tmp)) {
+  if (tmp[0] && match_my_nick(tmp)) {
     bool ison_orig = 0;
     bool ison_orig = 0;
 
 
     while ((tmp = newsplit(&msg))[0]) {
     while ((tmp = newsplit(&msg))[0]) {
@@ -802,7 +802,7 @@ static int got432(char *from, char *msg)
   else {
   else {
     putlog(LOG_MISC, "*", "Server says my nickname '%s' is invalid.", botname);
     putlog(LOG_MISC, "*", "Server says my nickname '%s' is invalid.", botname);
     rotate_nick(botname, origbotname);
     rotate_nick(botname, origbotname);
-    dprintf(DP_MODE, "NICK %s\n", erroneus);
+    dprintf(DP_MODE, "NICK %s\n", botname);
     return 0;
     return 0;
   }
   }
   return 0;
   return 0;