From 0d5d3a20e1185e162102c7b8bea87962729f910a Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Tue, 4 Sep 2007 01:50:37 +0000 Subject: New Auth Framework, New Irc Framework: convenience methods for Irc::User to retrieve the associated BotUser and its data --- lib/rbot/message.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rbot/message.rb') diff --git a/lib/rbot/message.rb b/lib/rbot/message.rb index 6331825d..969dbc7d 100644 --- a/lib/rbot/message.rb +++ b/lib/rbot/message.rb @@ -167,7 +167,7 @@ module Irc # Access the botuser corresponding to the source, if any # def botuser - @bot.auth.autologin(@source) rescue @bot.auth.everyone + m.source.botuser rescue @bot.auth.everyone end -- cgit v1.2.3