Module: IIRC::TrackOwnNick

Included in:
Bot
Defined in:
lib/iirc/modules/track_own_nick.rb

Instance Method Summary collapse

Instance Method Details

#configure_own_nick_trackingObject (private)



5
6
7
8
# File 'lib/iirc/modules/track_own_nick.rb', line 5

def configure_own_nick_tracking
  on :'001', :track_own_nick_from_welcome
  on :nick,  :track_own_nick_change
end

#track_own_nick_change(evt) ⇒ Object (private)



14
15
16
# File 'lib/iirc/modules/track_own_nick.rb', line 14

def track_own_nick_change evt
  me.nick = evt.args[0] if me === evt.sender
end

#track_own_nick_from_welcome(evt) ⇒ Object (private)



10
11
12
# File 'lib/iirc/modules/track_own_nick.rb', line 10

def track_own_nick_from_welcome evt
  me.nick = evt.args[0]
end