summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--lib/rbot/botuser.rb2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 3e265426..d82ab0a8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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