]> git.donarmstrong.com Git - infobot.git/commitdiff
opme
authortimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Wed, 16 Feb 2005 20:54:39 +0000 (20:54 +0000)
committertimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Wed, 16 Feb 2005 20:54:39 +0000 (20:54 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@1124 c11ca15a-4712-0410-83d8-924469b57eb5

src/Modules/UserDCC.pl

index 3e108f0c0b9827ed87e75c7b9a73e7966dfe2929..cb17b8035a6e3510e3cb0f2e90e93d8a54594c18 100644 (file)
@@ -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"));