From ab4b92e93ff005240e8604156b0633c7967d7f1b Mon Sep 17 00:00:00 2001 From: timriker Date: Thu, 8 Jul 2004 16:29:13 +0000 Subject: [PATCH] add a do to go with say git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@989 c11ca15a-4712-0410-83d8-924469b57eb5 --- blootbot/src/Modules/UserDCC.pl | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/blootbot/src/Modules/UserDCC.pl b/blootbot/src/Modules/UserDCC.pl index c813f56..301581d 100644 --- a/blootbot/src/Modules/UserDCC.pl +++ b/blootbot/src/Modules/UserDCC.pl @@ -349,6 +349,23 @@ sub userDCC { return; } + # do. + if ($message =~ s/^do\s+(\S+)\s+(.*)//) { + return unless (&hasFlag("o")); + my ($chan,$msg) = (lc $1, $2); + + &DEBUG("chan => '$1', msg => '$msg'."); + + # TODO: add nick destination. + if (&validChan($chan)) { + &action($chan, $msg); + } else { + &msg($who,"i'm not on \002$chan\002, sorry."); + } + + return; + } + # die. if ($message =~ /^die$/) { return unless (&hasFlag("n")); -- 2.39.5