Răsfoiți Sursa

* Fixed bots auto-opping passwordless users on JOIN, to match cmd_mop.

svn: 2298
Bryan Drewery 21 ani în urmă
părinte
comite
658abc0b6c
2 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  1. 1 0
      doc/UPDATES
  2. 2 1
      src/mod/irc.mod/chan.c

+ 1 - 0
doc/UPDATES

@@ -46,6 +46,7 @@ Lines prefixed with '-' were disabled before release and are not finished, or ar
 * Fixed cmd_chattr displaying flags for higher users, therefore bypassing 'whois' restrictions. (#123)
 * Fixed cmd_chattr displaying flags for higher users, therefore bypassing 'whois' restrictions. (#123)
 * Added examples on how to use cmd_set in the helpfile. (#118)
 * Added examples on how to use cmd_set in the helpfile. (#118)
 * Added confirmation for using 'set' on list variables without using the list functions. (#118)
 * Added confirmation for using 'set' on list variables without using the list functions. (#118)
+* Fixed bots auto-opping passwordless users on JOIN, to match cmd_mop.
 
 
 1.2.4
 1.2.4
 * Fixed cmd_botset not displaying botnick.
 * Fixed cmd_botset not displaying botnick.

+ 2 - 1
src/mod/irc.mod/chan.c

@@ -2443,7 +2443,8 @@ static int gotjoin(char *from, char *chname)
           }
           }
         }
         }
 #endif /* CACHE */
 #endif /* CACHE */
-        if (!splitjoin && !chan_hasop(m) && (op || (dovoice(chan) && chk_autoop(fr, chan)))) {
+        if (!splitjoin && !chan_hasop(m) && (op || (dovoice(chan) && 
+            !u_pass_match(m->user, "-") && chk_autoop(fr, chan)))) {
           do_op(m->nick, chan, 1, 0);
           do_op(m->nick, chan, 1, 0);
         }
         }
       }
       }