Skip to content

Commit

Permalink
Make sure a user isn't anonymous in usermodes
Browse files Browse the repository at this point in the history
  • Loading branch information
kylef committed Jul 6, 2010
1 parent 82fa6f3 commit 9c2023c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/usermodes.rb
Expand Up @@ -27,7 +27,7 @@ def remove(instance, channel, username=nil, mode=nil)
end

def event(sender, e)
if e.command == 'join' and e.respond_to?('user') then
if e.command == 'join' and e.respond_to?('user') and not e.user.anonymous? then
if @usermodes.has_key?(k = e.delegate.instance + ':' + e.channel) then
if @usermodes[k].has_key?(e.user.username) then
@usermodes[k][e.user.username].each{ |mode| e.delegate.write "MODE #{e.channel} +#{mode} #{e.name}" }
Expand Down

0 comments on commit 9c2023c

Please sign in to comment.