diff options
author | David Phillips <david@sighup.nz> | 2017-03-07 15:50:46 +1300 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2017-03-07 15:50:46 +1300 |
commit | 30d44a6b8e05a0e31dca073e0f8d9092e35c8d61 (patch) | |
tree | 47db1df78a61898ebe70e80e336772b29c844521 | |
parent | 1fa355a0a01751f5914c7cdcc3cac1eb470a10c2 (diff) | |
download | idalius-30d44a6b8e05a0e31dca073e0f8d9092e35c8d61.tar.xz |
Add nick changing command
-rwxr-xr-x | saxrobot | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -92,6 +92,14 @@ sub irc_msg { $irc->yield(privmsg => $nick => "I am bot, go away"); return; } + if ($what =~ /^nick\s/) { + my ($channel) = $what =~ /^nick\s+(\S+)$/; + if ($channel) { + $irc->yield(nick => $channel); + } else { + $irc->yield(privmsg => $nick => "Syntax: nick <nick>"); + } + } if ($what =~ /^part\s/) { my ($channel) = $what =~ /^part\s+(\S+)$/; if ($channel) { |