mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02:00
updated
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@976 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
bb594d2aa6
commit
d22ca4efe5
8 changed files with 24 additions and 27 deletions
|
|
@ -8,15 +8,17 @@ use Irssi;
|
|||
use Irssi::Irc;
|
||||
|
||||
sub event_rejoin_kick {
|
||||
my ($data, $server) = @_;
|
||||
my ($server, $data) = @_;
|
||||
my ($channel, $nick) = split(/ +/, $data);
|
||||
|
||||
return if ($server->values()->{'nick'} ne $nick);
|
||||
return if ($server->{nick} ne $nick);
|
||||
|
||||
# check if channel has password
|
||||
$chanrec = $server->channel_find($channel);
|
||||
$password = $chanrec->values()->{'key'} if ($chanrec);
|
||||
$password = $chanrec->{key} if ($chanrec);
|
||||
|
||||
# We have to use send_raw() because the channel record still
|
||||
# exists and irssi won't even try to join to it with command()
|
||||
$server->send_raw("JOIN $channel $password");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue