Skip to content

Instantly share code, notes, and snippets.

@macks
Last active August 29, 2015 14:27
Show Gist options
  • Save macks/9951996989add729e839 to your computer and use it in GitHub Desktop.
Save macks/9951996989add729e839 to your computer and use it in GitHub Desktop.
Tiarra IRC Proxy: Avoid warnings for Slack IRC gateway
--- 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