From 535b897f97ee6abee811bd33bab6828244ec241f Mon Sep 17 00:00:00 2001 From: Rich Healey Date: Thu, 6 Jan 2011 19:45:35 -0800 Subject: --- auto-server/auto_server.pl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'auto-server/auto_server.pl') diff --git a/auto-server/auto_server.pl b/auto-server/auto_server.pl index a9f6645..0f5a11e 100644 --- a/auto-server/auto_server.pl +++ b/auto-server/auto_server.pl @@ -198,6 +198,8 @@ sub join_plus { _debug_print ("awaiting connection for join"); $pending_joins->{$server_id} = $channel; + # This comes tumbling down if the server doesn't have a MOTD. + # is that RFC required? Irssi::signal_add_last("event 376", 'do_channel_join'); } } -- cgit v1.2.3 From eddd7d5487252dc40e1ec8de12a0042cd98e8c0c Mon Sep 17 00:00:00 2001 From: richo Date: Wed, 21 Sep 2011 21:34:01 +1000 Subject: Staging a few ideas on this slow shutdown issue --- auto-server/auto_server.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'auto-server/auto_server.pl') diff --git a/auto-server/auto_server.pl b/auto-server/auto_server.pl index 8f24e50..9f18be9 100644 --- a/auto-server/auto_server.pl +++ b/auto-server/auto_server.pl @@ -108,7 +108,7 @@ sub parse_channel_map { Irssi::active_win->print("Could not process channel => server mappings"); $channel_map = {}; } - _debug_print Dumper($channel_map); + #_debug_print Dumper($channel_map); bind_completion(); } @@ -200,6 +200,7 @@ sub join_plus { } sub do_channel_join { + Irssi::signal_remove("event 376", 'do_channel_join'); my ($serv) = @_; #_debug_print("server is " . Dumper($serv)); _debug_print(sprintf("server is %s (%s)", $serv->{address}, $serv->{tag})); -- cgit v1.2.3 From 92d8c0227f5da999a32431063cbc38e0950c9081 Mon Sep 17 00:00:00 2001 From: richo Date: Wed, 21 Sep 2011 21:34:15 +1000 Subject: TODO notes --- auto-server/auto_server.pl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'auto-server/auto_server.pl') diff --git a/auto-server/auto_server.pl b/auto-server/auto_server.pl index 9f18be9..77ba527 100644 --- a/auto-server/auto_server.pl +++ b/auto-server/auto_server.pl @@ -150,6 +150,8 @@ sub join_plus { return; } # TODO: search values() and give a 'did you mean' for closest channel + # TODO: Fuzzy match for ## channels (Would be nice to hax at teh tab + # completion too) # check if we're connected to that server my $server = Irssi::server_find_tag($server_id); @@ -177,6 +179,8 @@ sub join_plus { # check if we're already on the required channel my $on_channel = $server->channel_find($channel); + # FIXME + # Should this be $on_channel? Need docs.. if (defined $channel && ref($channel) eq 'Irssi::Irc::Channel') { Irssi::active_win()->print("You are already connected to " . " $channel on " . $server->{tag}); -- cgit v1.2.3