summaryrefslogtreecommitdiff
path: root/lib/Multi/IRC.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2017-01-29 10:27:01 +0100
committerYorhel <git@yorhel.nl>2017-01-29 10:27:04 +0100
commitbf73664a22c4c80546e6d4ca27d4419184696eb8 (patch)
tree898b799666e6bd64f919c121ae76c17b01acc996 /lib/Multi/IRC.pm
parentfc26555203b8433ae9503e0d3208d4293f8df3d3 (diff)
IRC: Remove eval command
I never use it. And it's scary.
Diffstat (limited to 'lib/Multi/IRC.pm')
-rw-r--r--lib/Multi/IRC.pm9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/Multi/IRC.pm b/lib/Multi/IRC.pm
index 5eaf6355..7b0f4a96 100644
--- a/lib/Multi/IRC.pm
+++ b/lib/Multi/IRC.pm
@@ -482,15 +482,6 @@ scr => [ 0, 0, sub {
};
}],
-eval => [ 1, 1, sub {
- my @l = split /\r?\n/, eval($_[2])||$@;
- if(@l > 5 || length(join ' ', @l) > 400) {
- $irc->send_msg(PRIVMSG => $_[1], 'Output too large, refusing to spam chat (and too lazy to use a pastebin).');
- } else {
- $irc->send_msg(PRIVMSG => $_[1], encode_utf8("eval: ".$_)) for @l;
- }
-}],
-
die => [ 1, 1, sub {
kill 'TERM', 0;
}],