Skip to content

Commit

Permalink
contrib/cap_sasl.pl: be nice to non-IRC plugins
Browse files Browse the repository at this point in the history
Irssi supports plugins for other protocols, like ICB or SILC. Let's not
send IRC-specific commands to those.
  • Loading branch information
grawity committed Feb 3, 2014
1 parent 240d16a commit b6d8bf8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contrib/cap_sasl.pl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@

sub server_connected {
my $server = shift;
$server->send_raw_now("CAP LS");
if (uc $server->{chat_type} eq 'IRC') {
$server->send_raw_now("CAP LS");
}
}

sub event_cap {
Expand Down

0 comments on commit b6d8bf8

Please sign in to comment.