commit 25404561744b2620ad0b24b6623825b6e43e2220 from: Izzy Blacklock date: Mon Jul 31 18:47:36 2023 UTC added chomp($response) before debug() commit - 9b9146dbd1409496824463560c2930c6ac1bae41 commit + 25404561744b2620ad0b24b6623825b6e43e2220 blob - 62423d9fff61b032d3d343ec35a2ee86fce182e2 blob + 4d89ae73181f7d421a08571ad1001ba1c01aa214 --- botnow +++ botnow @@ -196,6 +196,7 @@ while(my @ready = $sel->can_read) { debug(ALL, "Debug type: $type, target: $target, text: $text"); } } elsif($response =~ /^:(([^!]+)!([^@]+@[^@ ]+)) PRIVMSG ([^ ]+) :(.*)\r\n$/i) { + chomp($response); debug(ALL, "-->COMMAND--> $response"); my ($hostmask, $sendnick, $host, $target, $text) = ($1, $2, $3, $4, $5); if ($hostmask eq '*status!znc@znc.in' && $target =~ /^$nick.?$/) { @@ -440,6 +441,7 @@ while(my @ready = $sel->can_read) { debug(ERRORS, "Unexpected bncnow.pl 454: $server $code $text"); } } else { + chomp($response); debug(ERRORS, "--> $response"); } }