From e61fdee14c008ef4d8e9eb5ae2267db5282ebe57 Mon Sep 17 00:00:00 2001 From: Elijah Perrault Date: Fri, 4 Mar 2011 21:54:12 -0700 Subject: [PATCH] Proto::IRC::umodes renamed to Proto::IRC::botinfo{svr}{modes}. --- doc/CHANGELOG | 1 + lib/Core/IRC.pm | 4 ++-- lib/Proto/IRC.pm | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/CHANGELOG b/doc/CHANGELOG index 799f3ec..c5e9f48 100644 --- a/doc/CHANGELOG +++ b/doc/CHANGELOG @@ -3,6 +3,7 @@ Auto IRC Bot 3.0: Change Log 3.0 Indev =============================================================================== + * Proto::IRC::umodes renamed to Proto::IRC::botinfo{svr}{modes}. * Fixed a bug where incoming PART's from ourselves were not parsed. * Our usermodes are now tracked in Proto::IRC::umodes. * Added events on_cmode and on_umode. diff --git a/lib/Core/IRC.pm b/lib/Core/IRC.pm index 5a6fd0e..37c0ae1 100644 --- a/lib/Core/IRC.pm +++ b/lib/Core/IRC.pm @@ -223,10 +223,10 @@ hook_add('on_umode', 'core.irc.state.umode', sub { else { # Adjust our modes. if ($op) { - $Proto::IRC::umodes{$svr} .= $_; + $Proto::IRC::botinfo{$svr}{modes} .= $_; } else { - $Proto::IRC::umodes{$svr} =~ s/($_)//xsm; + $Proto::IRC::botinfo{$svr}{modes} =~ s/($_)//xsm; } } } diff --git a/lib/Proto/IRC.pm b/lib/Proto/IRC.pm index 965aa50..b338de9 100644 --- a/lib/Proto/IRC.pm +++ b/lib/Proto/IRC.pm @@ -38,7 +38,7 @@ our %RAWC = ( ); # Variables for various functions. -our (%got_001, %botinfo, %botchans, %csprefix, %chanusers, %chanmodes, %cap, %umodes); +our (%got_001, %botinfo, %botchans, %csprefix, %chanusers, %chanmodes, %cap); # Events. API::Std::event_add('on_capack');