aboutsummaryrefslogtreecommitdiffstats
path: root/auto-server
diff options
context:
space:
mode:
authorTom Feist <shabble@metavore.org>2010-12-31 15:23:56 +0000
committerTom Feist <shabble@metavore.org>2010-12-31 15:23:56 +0000
commit813e14c9aaf4a43cfd1eabadb5089ac1f2237331 (patch)
treeb3370d2b8f76b264657d7367db4ce4c3f42fd765 /auto-server
parentauto_server: initial commit - script to handle connecting to various servers (diff)
downloadirssi-scripts-813e14c9aaf4a43cfd1eabadb5089ac1f2237331.tar.gz
irssi-scripts-813e14c9aaf4a43cfd1eabadb5089ac1f2237331.zip
auto_server: bugfix: forgot to remove pending items from queue after joining the channel
Diffstat (limited to 'auto-server')
-rw-r--r--auto-server/auto_server.pl20
1 files changed, 20 insertions, 0 deletions
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();