Last active
August 29, 2015 14:27
-
-
Save macks/9951996989add729e839 to your computer and use it in GitHub Desktop.
Tiarra IRC Proxy: Avoid warnings for Slack IRC gateway
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/main/IrcIO/Server.pm | |
+++ b/main/IrcIO/Server.pm | |
@@ -829,6 +829,9 @@ sub _MODE { | |
}; | |
for (;$mode_char_pos < $n_params;$mode_char_pos += $mode_param_offset + 1) { | |
+ if (substr($msg->param($mode_char_pos), 0, 1) eq ' ') { | |
+ next; | |
+ } | |
$mode_param_offset = 0; # これは毎回リセットする。 | |
foreach my $c (split //,$msg->param($mode_char_pos)) { | |
my $add_or_delete = ($plus ? 'add' : 'delete'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment