aboutsummaryrefslogtreecommitdiff
path: root/idalius.pl
diff options
context:
space:
mode:
Diffstat (limited to 'idalius.pl')
-rwxr-xr-xidalius.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/idalius.pl b/idalius.pl
index 271f447..3bf21f8 100755
--- a/idalius.pl
+++ b/idalius.pl
@@ -153,6 +153,7 @@ sub irc_msg {
$what =~ s/^part\s+//;
my ($chan_str, $reason) = split /\s+(?!#)/, $what, 2;
my @channels = split /\s+/, $chan_str;
+ $reason = "Commanded by $nick" unless $reason;
$irc->yield(part => @channels => $reason);
$irc->yield(privmsg => $nick => "Requested.");
} else {