git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@1319
c11ca15a-4712-0410-83d8-
924469b57eb5
+2007-03-13 troubled
+
+ * src/IRC/IrcHelpers.pl: Fixed bug in "+sed" that caused the bot
+ to flood itself off the network when passed large s///g;. A
+ temporary limit of 255 charaters on the output has been enabled.
+
2007-03-11 22:00 troubled
* src/{Process.pl,UserExtra.pl}: Fixed bug with karma stats. It
$orig{message} =~ /^s\/([^;\/]*)\/([^;\/]*)\/([g]*)$/) {
my $sedmsg = $seencache{$who}{'msg'};
eval "\$sedmsg =~ s/\Q$1\E/\Q$2\E/$3;";
+ $sedmsg =~ s/^(.{255}).*$/$1.../; # 255 char max to prevent flood
+
if ($sedmsg ne $seencache{$who}{'msg'}) {
&DEBUG("sed \"" . $orig{message} . "\" \"" .
$seencache{$who}{'msg'} . "\" \"" . $sedmsg. "\"");