aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2017-05-21 20:20:00 +1200
committerDavid Phillips <david@sighup.nz>2017-05-21 20:20:00 +1200
commit43afc305e7c8c0547ed3df77090590ad1f4b288b (patch)
tree825baef9ea1c04025a818754c37c2fa8da40a591
parent9358edb20715afc4d497d35bb9b07f3429d22da7 (diff)
downloadidalius-43afc305e7c8c0547ed3df77090590ad1f4b288b.tar.xz
Change variable name (copy/paste error)
-rwxr-xr-xidalius.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/idalius.pl b/idalius.pl
index 9ac4138..096279f 100755
--- a/idalius.pl
+++ b/idalius.pl
@@ -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>");