diff options
Diffstat (limited to 'lib/rbot/rfc2812.rb')
-rw-r--r-- | lib/rbot/rfc2812.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/rbot/rfc2812.rb b/lib/rbot/rfc2812.rb index ac448883..758f574e 100644 --- a/lib/rbot/rfc2812.rb +++ b/lib/rbot/rfc2812.rb @@ -1244,6 +1244,12 @@ module Irc when RPL_DATASTR data[:text] = argv[1] handle(:datastr, data) + when RPL_AWAY + data[:nick] = argv[1] + data[:message] = argv[-1] + user = @server.get_user(data[:nick]) + user.away = data[:message] + handle(:away, data) when RPL_WHOREPLY data[:channel] = argv[1] data[:user] = argv[2] |