Przeglądaj źródła

* Fixed error log for non-chathub bot being chatted

svn: 394
Bryan Drewery 22 lat temu
rodzic
commit
bb9f870341
1 zmienionych plików z 4 dodań i 2 usunięć
  1. 4 2
      src/mod/server.mod/servmsg.c

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

@@ -465,8 +465,10 @@ static int gotmsg(char *from, char *msg)
 			  dprintf(DP_HELP, "NOTICE %s :%s\n",
 				nick, DCC_NOSTRANGERS);
 		      }
-		      putlog(LOG_MISC, "*", "%s: %s",
-			   DCC_REFUSED, from);
+                      if (!ischanhub())
+                        putlog(LOG_MISC, "*", "%s: %s", DCC_REFUSEDNC, from);
+                      else
+                        putlog(LOG_MISC, "*", "%s: %s", DCC_REFUSED, from);
 		    } else
 		      putlog(LOG_MISC, "*", "Refused DCC %s: %s",
 			   code, from);