Permalink
Browse files

Update global cache instead of a local copy

Rather than waste the cache everytime the configuration is read, update the
global copy so that other states can use it
  • Loading branch information...
1 parent 6bb77f4 commit ee0bb4ddef3617156bd04ace7297e6c4bb80c566 @an0maly an0maly committed Apr 6, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 radicalweed.pl
View
@@ -46,7 +46,7 @@
$channel =~ s/^#//;
# give them op if they are in the (reread) config
- my %config = read_config();
+ %config = read_config();
if( exists $config{server}{$server_addr}{channel}{$channel}{ops}{$nick} ) {
print "$server_addr: Gave op to $nick in #$channel.\n";
$irc->yield( mode => "#$channel" => '+o' => $nick );

0 comments on commit ee0bb4d

Please sign in to comment.