diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | lib/rbot/botuser.rb | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -8,6 +8,8 @@ * New IRC Framework: topic plugin now works correctly. * New Auth Framework: nickserv plugin now defaults to false for its auth, so that only owner can do stuff with it + * New Auth Framework: fix horrible typo, assignment instead of + equality test when checking for the username during login. 2006-08-12 Giuseppe Bilotta <giuseppe.bilotta@gmail.com> diff --git a/lib/rbot/botuser.rb b/lib/rbot/botuser.rb index 29d7eed5..41fca6cf 100644 --- a/lib/rbot/botuser.rb +++ b/lib/rbot/botuser.rb @@ -595,7 +595,7 @@ module Irc k = n.to_sym
raise "No such BotUser #{n}" unless include?(k)
if @botusers.has_key?(ircuser)
- return true if @botusers[ircuser].username = n
+ return true if @botusers[ircuser].username == n
# TODO
# @botusers[ircuser].logout(ircuser)
end
|