소스 검색

* Port [3608] to 1.2.14
* Fix ambiguous warning when a bot tries linking after being added with +user (fixes #383)



svn: 3609

Bryan Drewery 18 년 전
부모
커밋
ff69775acd
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 0
      doc/UPDATES
  2. 1 1
      src/dcc.c

+ 1 - 0
doc/UPDATES

@@ -66,6 +66,7 @@ Lines prefixed with '-' were disabled before release and are not finished, or ar
 * Fix checking for flood on hosts which are already ignored. (fixes #343)
 * Added OSVER entry for bots in .whois
 * Userfile transfers now use a random filename instead of .share.botnick.users.timestamp
+* Fix ambiguous warning when a bot tries linking after being added with +user (fixes #383)
 
 1.2.13 - http://wraith.shatow.net/milestone/1.2.13
 * Fix cmd_chanset accepting invalid flags

+ 1 - 1
src/dcc.c

@@ -1593,7 +1593,7 @@ dcc_telnet_id(int idx, char *buf, int atr)
   bool ok = 0;
 
   if (dcc[idx].user) {
-    if (!dcc[idx].bot && dcc[idx].user->bot) {
+    if (dcc[idx].bot != dcc[idx].user->bot) {
       putlog(LOG_WARN, "*", "Refused %s (fake bot login for '%s')", dcc[idx].host, nick);
       killsock(dcc[idx].sock);
       lostdcc(idx);