Skip to content
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.

Commit

Permalink
Losing k93-trigger and adding 1
Browse files Browse the repository at this point in the history
  • Loading branch information
geirha committed Sep 16, 2012
1 parent a170494 commit 027ae6c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions evalbot.pl
Expand Up @@ -79,18 +79,18 @@ sub message
my( $conn, $event ) = @_; my( $conn, $event ) = @_;
my( $msg ) = $event->args; my( $msg ) = $event->args;


if( $msg =~/^([2-4k]|sh|k?93)?# botsnack$/ ) { if( $msg =~/^([1-4k]|sh)?# botsnack$/ ) {
$conn->privmsg($event->to, "Core dumped."); $conn->privmsg($event->to, "Core dumped.");
} elsif( $msg =~/^([2-4k]|sh|k?93)?# botsmack$/ ) { } elsif( $msg =~/^([1-4k]|sh)?# botsmack$/ ) {
$conn->privmsg($event->to, "Segmentation fault"); $conn->privmsg($event->to, "Segmentation fault");
} elsif( $msg =~/^([2-4]|sh)# (.*)/ ) { } elsif( $msg =~/^([1-4]|sh)# (.*)/ ) {
open(FOO, "-|", "./evalcmd", "_$1", "$2"); open(FOO, "-|", "./evalcmd", "_$1", "$2");
while(<FOO>) { while(<FOO>) {
$conn->privmsg($event->to, $event->nick . ": $_"); $conn->privmsg($event->to, $event->nick . ": $_");
} }
close(FOO); close(FOO);
} elsif( $msg =~/^(k|k?93)# (.*)/ ) { } elsif( $msg =~/^k# (.*)/ ) {
open(FOO, "-|", "./evalcmd", "_k93", "$2"); open(FOO, "-|", "./evalcmd", "_k93", "$1");
while(<FOO>) { while(<FOO>) {
$conn->privmsg($event->to, $event->nick . ": $_"); $conn->privmsg($event->to, $event->nick . ": $_");
} }
Expand All @@ -117,14 +117,14 @@ sub private
$conn->privmsg( $event->nick, "Usage: 4# cmd" ); $conn->privmsg( $event->nick, "Usage: 4# cmd" );
} elsif($msg =~ /^!raw $password (.*)/) { } elsif($msg =~ /^!raw $password (.*)/) {
$conn->sl($1); $conn->sl($1);
} elsif( $msg =~/^([2-4]|sh)# (.*)/ ) { } elsif( $msg =~/^([1-4]|sh)# (.*)/ ) {
open(FOO, "-|", "./evalcmd", "_$1", "$2"); open(FOO, "-|", "./evalcmd", "_$1", "$2");
while(<FOO>) { while(<FOO>) {
$conn->privmsg($event->nick, "$_"); $conn->privmsg($event->nick, "$_");
} }
close(FOO); close(FOO);
} elsif( $msg =~/^(k|k?93)# (.*)/ ) { } elsif( $msg =~/^k# (.*)/ ) {
open(FOO, "-|", "./evalcmd", "_k93", "$2"); open(FOO, "-|", "./evalcmd", "_k93", "$1");
while(<FOO>) { while(<FOO>) {
$conn->privmsg($event->nick, "$_"); $conn->privmsg($event->nick, "$_");
} }
Expand Down

0 comments on commit 027ae6c

Please sign in to comment.