Module: Hector::Commands::Nick

Included in:
Session
Defined in:
lib/hector/commands/nick.rb

Instance Method Summary collapse

Instance Method Details

#on_nickObject



4
5
6
7
8
# File 'lib/hector/commands/nick.rb', line 4

def on_nick
  old_nickname = nickname
  rename(request.args.first)
  broadcast(:nick, nickname, :source => old_nickname)
end