浏览代码

Now supports multiple servers

Samuel Groß 10 年之前
父节点
当前提交
62421e993c
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      weesleep.c

+ 2 - 2
weesleep.c

@@ -38,10 +38,10 @@ int my_process_cb(void* data, const char* command, int return_code, const char*
         /* TODO messages might arrive in multiple chunks... */
         if (weechat_strcasecmp(out, WEESLEEP_SUSPENDING) == 0) {
             weechat_printf (NULL, TAG "Suspending...", return_code);
-            weechat_command(NULL, "/disconnect");
+            weechat_command(NULL, "/disconnect -all");
         } else if (weechat_strcasecmp(out, WEESLEEP_WAKINGUP) == 0) {
             weechat_printf (NULL, TAG "Waking up...", return_code);
-            weechat_command(NULL, "/reconnect");
+            weechat_command(NULL, "/reconnect -all");
         } else {
             weechat_printf (NULL, TAG "Unknown message received from subprocess: %s", out);
         }