From 813e14c9aaf4a43cfd1eabadb5089ac1f2237331 Mon Sep 17 00:00:00 2001 From: Tom Feist Date: Fri, 31 Dec 2010 15:23:56 +0000 Subject: auto_server: bugfix: forgot to remove pending items from queue after joining the channel --- auto-server/auto_server.pl | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'auto-server') diff --git a/auto-server/auto_server.pl b/auto-server/auto_server.pl index fd6a205..9f28fec 100644 --- a/auto-server/auto_server.pl +++ b/auto-server/auto_server.pl @@ -1,3 +1,19 @@ +# USAGE: +# +# the primary command used is /join+ #channelname +# +# Mappings for channels to servers is accomplished with the +# joinplus_server_maps setting. +# +# Within this setting, space separated pairs denote channel, server pairs. +# Spaces also separate individual pairs, for example: +# +# /set joinplus_server_maps #foo Freenode #bar irc.somewhere.tld #meep DALNet +# +# Then use /join+ #foo, and if you are not already connected to freenode, it +# will connect you, and then join that channel. + + use strict; use warnings; @@ -147,6 +163,10 @@ sub do_channel_join { _debug_print ("attempting to join $channel"); Irssi::server_find_tag($serv->{tag})->command("JOIN $channel"); + + delete $pending_joins->{$serv->{address}}; + delete $pending_joins->{$serv->{tag}}; + } auto_server_init(); -- cgit v1.2.3