aboutsummaryrefslogtreecommitdiff
path: root/idalius.pl
diff options
context:
space:
mode:
Diffstat (limited to 'idalius.pl')
-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>");