}
}
}
}
'nick' {
if parts.len > 2 {
if parts.len == 3 {
nick := parts[2]
for ircnet in self.irc.networks {
for mut ghost in ircnet.ghosts.ghosts {
msg := 'changing nick to $nick'
self.chat.say(system, '', network, room_id, msg)
ircnet.nick(mut *ghost, nick)
}
}
} else {
msg := '!irc nick <new_nick>'
self.chat.say(system, '', network, room_id, msg)
}
} else {
for ircnet in self.irc.networks {
for ghost in ircnet.ghosts.ghosts {
msg := '$ircnet.hostname $ghost.nick'
self.chat.say(system, '', network, room_id, msg)