diff options
Diffstat (limited to 'lib/rbot/rfc2812.rb')
-rw-r--r-- | lib/rbot/rfc2812.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/rbot/rfc2812.rb b/lib/rbot/rfc2812.rb index 1a5adb84..5dec464c 100644 --- a/lib/rbot/rfc2812.rb +++ b/lib/rbot/rfc2812.rb @@ -821,7 +821,7 @@ module Irc # create a new Client instance def initialize @server = Server.new # The Server - @user = @server.user("") # The User representing the client on this Server + @user = @server.user("") # The User representing the client on this Server @handlers = Hash.new @@ -830,6 +830,12 @@ module Irc @tmpusers = [] end + # clear the server and reset the User + def reset + @server.clear + @user = @server.user("") + end + # key:: server event to handle # value:: proc object called when event occurs # set a handler for a server event |