Bryan Drewery 19 лет назад
Родитель
Сommit
2e12e29770
2 измененных файлов с 7 добавлено и 4 удалено
  1. 6 3
      src/cmds.c
  2. 1 1
      src/mod/server.mod/servmsg.c

+ 6 - 3
src/cmds.c

@@ -3690,9 +3690,12 @@ static void rcmd_cursrv(char * fbot, char * fhand, char * fidx) {
   if (!conf.bot->hub) {
     char tmp[2048] = "";
 
-    if (server_online)
-      sprintf(tmp, "Currently: %-40s Lag: %ds", cursrvname, server_lag);
-    else
+    if (server_online) {
+      if (floodless)
+        sprintf(tmp, "Currently: %-40s Lag: %ds [floodless ;)]", cursrvname, server_lag);
+      else
+        sprintf(tmp, "Currently: %-40s Lag: %ds", cursrvname, server_lag);
+    } else
       simple_sprintf(tmp, "Currently: none");
 
     botnet_send_cmdreply(conf.bot->nick, fbot, fhand, fidx, tmp);

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

@@ -679,7 +679,7 @@ static int gotnotice(char *from, char *msg)
       /* Server notice? */
       if ((nick[0] == 0) || (uhost[0] == 0)) {
         if (!server_online && 
-            !strncmp(msg, "*** You are exempt from flood", 29))
+            strstr(msg, "*** You are exempt from flood"))
           floodless = 1;
 	/* Hidden `250' connection count message from server */
 	if (strncmp(msg, "Highest connection count:", 25))