diff options
author | David Phillips <david@sighup.nz> | 2017-05-21 20:20:00 +1200 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2017-05-21 20:20:00 +1200 |
commit | 43afc305e7c8c0547ed3df77090590ad1f4b288b (patch) | |
tree | 825baef9ea1c04025a818754c37c2fa8da40a591 | |
parent | 9358edb20715afc4d497d35bb9b07f3429d22da7 (diff) | |
download | idalius-43afc305e7c8c0547ed3df77090590ad1f4b288b.tar.xz |
Change variable name (copy/paste error)
-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>"); |