Răsfoiți Sursa

* Fixed a +voice bug

svn: 226
Bryan Drewery 22 ani în urmă
părinte
comite
7a506a9489
2 a modificat fișierele cu 4 adăugiri și 1 ștergeri
  1. 2 1
      doc/CREDITS
  2. 2 0
      src/mod/irc.mod/irc.c

+ 2 - 1
doc/CREDITS

@@ -11,8 +11,9 @@ passwd for being so dedicated at suggesting improvements and finding bugs.
 pgpkeys for finding bugs, and providing input.
 qFox for providing an mIRC $md5() alias, not requiring a dll or >6.03
 Sith_Lord helping test ipv6 on the bot (admin@elitepackets.com)
-Excelsior for finding a bug on BSD with the ipv6.
+Excelsior for finding a bug on BSD with the ipv6, and for celdrop which inspired many features.
 syt for giving me inspiration to code a more secure bot.
+Mystikal for various bugs
 
 The following botpacks gave me inspiration and ideas (no code):
 awptic by lordoptic

+ 2 - 0
src/mod/irc.mod/irc.c

@@ -1206,6 +1206,7 @@ static void check_expired_chanstuff()
      //autovoice of +v users if bot is +y
       if (!loading && channel_active(chan) && me_op(chan) && dovoice(chan)) {
         for (m = chan->channel.member; m && m->nick[0]; m = m->next) {
+          sprintf(s, "%s!%s", m->nick, m->userhost);
           if (!m->user)
             m->user = get_user_by_host(s);
 
@@ -1217,6 +1218,7 @@ static void check_expired_chanstuff()
                 (!channel_voice(chan) && chk_voice(fr2, chan))) &&      
                !glob_bot(fr2) &&
                !chan_hasop(m) && !chan_hasvoice(m) && !(m->flags & EVOICE)) {
+              putlog(LOG_DEBUG, "@", "VOICING %s in %s as '%s'", m->nick, chan->dname, m->user->handle);
               add_mode(chan, '+', 'v', m->nick);
             } else if (!glob_bot(fr2) && 
               (chk_devoice(fr2, chan) || (m->flags & EVOICE))) {