lib/marvin/irc/client.rb in Sutto-marvin-0.1.0.20081016 vs lib/marvin/irc/client.rb in Sutto-marvin-0.1.20081115
- old
+ new
@@ -55,16 +55,14 @@
self.client = Marvin::IRC::Client.new
self.client.em_connection = self
end
def post_init
- super
client.process_connect
end
def unbind
- super
client.process_disconnect
end
def receive_line(line)
self.client.receive_line(line)
@@ -96,10 +94,10 @@
logger.debug "Stopped."
end
# Registers a callback handle that will be periodically run.
def periodically(timing, event_callback)
- callback = proc { self.dispatch_event event_callback.to_sym }
+ callback = proc { self.dispatch event_callback.to_sym }
EventMachine::add_periodic_timer(timing, &callback)
end
end
\ No newline at end of file