ソースを参照

server_minutely: Only try regaining nicks we think are juped.

This should fix trying to regain a jupenick when it is known
to be taken via ISON and our origbotname is juped.  Trying
to take the jupenick here is pointless since it is tracked
by ISON/MONITOR.

Issue #101
Bryan Drewery 10 年 前
コミット
71a55451c9
2 ファイル変更4 行追加1 行削除
  1. 3 0
      doc/UPDATES.md
  2. 1 1
      src/mod/server.mod/server.cc

+ 3 - 0
doc/UPDATES.md

@@ -1,3 +1,6 @@
+* Stop trying to regain jupenick when it is unavailable and main nick is
+  temporarily juped (#101).
+
 # maint
   * Update server list, 'set -yes servers -' and 'set -yes servers6 -' to get new list.
   * Fix Linux binary compat on FreeBSD due to lack of ptrace(2).

+ 1 - 1
src/mod/server.mod/server.cc

@@ -1108,7 +1108,7 @@ static void server_minutely()
     // Ratbox sets a nick_delay (default:15min) timer when a nick splits off to prevent collisions,
     // We must check periodically to see if the local server has unjuped our wanted nicks.
     if (keepnick && (jnick_juped == 2 || nick_juped == 2)) {
-      nick_available(1, 1);
+      nick_available(jnick_juped == 2, nick_juped == 2);
     }
   }
 }