From: Giuseppe Bilotta Date: Thu, 17 Aug 2006 15:06:51 +0000 (+0000) Subject: Stupid horrible typo in botuser.rb login method X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=c6ac3e019866dd3588333e1c068deda47a55d2d4;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git Stupid horrible typo in botuser.rb login method --- 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 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