]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
Stupid horrible typo in botuser.rb login method
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 17 Aug 2006 15:06:51 +0000 (15:06 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 17 Aug 2006 15:06:51 +0000 (15:06 +0000)
ChangeLog
lib/rbot/botuser.rb

index 3e265426939f6871251ec0ba94bd225dfc723640..d82ab0a82bc32f5b81d2c52574ad5c7320a666d2 100644 (file)
--- 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>
 
index 29d7eed54bbd7c93fac3d5d7baab4bbf2aba2fa0..41fca6cf9847316cd0d071826a0a5f36b2ee08eb 100644 (file)
@@ -595,7 +595,7 @@ module Irc
         k = n.to_sym\r
         raise "No such BotUser #{n}" unless include?(k)\r
         if @botusers.has_key?(ircuser)\r
-          return true if @botusers[ircuser].username = n\r
+          return true if @botusers[ircuser].username == n\r
           # TODO\r
           # @botusers[ircuser].logout(ircuser)\r
         end\r