diff options
Diffstat (limited to 'idalius.pl')
-rwxr-xr-x | idalius.pl | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -136,9 +136,9 @@ sub irc_msg { return; } if ($what =~ /^nick\s/) { - my ($channel) = $what =~ /^nick\s+(\S+)$/; - if ($channel) { - $irc->yield(nick => $channel); + my ($newnick) = $what =~ /^nick\s+(\S+)$/; + if ($newnick) { + $irc->yield(nick => $newnick); $irc->yield(privmsg => $nick => "Requested."); } else { $irc->yield(privmsg => $nick => "Syntax: nick <nick>"); |