Просмотр исходного кода

* Fixed wrong notice on partyline when a user with no access attempts to telnet in.

svn: 2288
Bryan Drewery 21 лет назад
Родитель
Сommit
0404894509
2 измененных файлов с 5 добавлено и 1 удалено
  1. 1 0
      doc/UPDATES
  2. 4 1
      src/dcc.c

+ 1 - 0
doc/UPDATES

@@ -40,6 +40,7 @@ Lines prefixed with '-' were disabled before release and are not finished, or ar
 * Fixed the whois_access() function to not allow non-perm owners to see/access perm-owners.
 * cmd_chpass now uses the whois_access() function. (#122)
 * Updated CREDITS/cmd_about (#119)
+* Fixed wrong notice on partyline when a user with no access attempts to telnet in.
 
 1.2.4
 * Fixed cmd_botset not displaying botnick.

+ 4 - 1
src/dcc.c

@@ -1597,7 +1597,10 @@ dcc_telnet_id(int idx, char *buf, int atr)
   }
 
   if (!ok) {
-    putlog(LOG_BOTS, "*", DCC_INVHANDLE, dcc[idx].host, nick);
+    if (dcc[idx].user)
+      putlog(LOG_BOTS, "*", "%s: %s!%s", ischanhub() ? DCC_REFUSED : DCC_REFUSEDNC, nick, dcc[idx].host);
+    else
+      putlog(LOG_BOTS, "*", DCC_INVHANDLE, dcc[idx].host, nick);
     killsock(dcc[idx].sock);
     lostdcc(idx);
     return;