From: timriker Date: Wed, 16 Feb 2005 20:54:39 +0000 (+0000) Subject: opme X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=1ba5d9f610adb9b529636145cecf6471d7c26e52;p=infobot.git opme git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@1124 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/src/Modules/UserDCC.pl b/src/Modules/UserDCC.pl index 3e108f0..cb17b80 100644 --- a/src/Modules/UserDCC.pl +++ b/src/Modules/UserDCC.pl @@ -84,6 +84,24 @@ sub userDCC { return; } + # opme. + if ($message =~ /^opme(\s+($mask{chan}))?$/i) { + return unless (&hasFlag("o")); + return unless (&hasFlag("A")); + + my $chan = $2; + + if ($chan eq "") { + &help("4op"); + return; + } + + # can this be exploited? + rawout("MODE $chan +o $who"); + + return; + } + # backlog. if ($message =~ /^backlog(\s+(.*))?$/i) { return unless (&hasFlag("o"));