From 3c37b460cb63c35f2ef7733bd06c0fe4533a912c Mon Sep 17 00:00:00 2001 From: richo Date: Mon, 18 Jul 2011 13:37:38 +1000 Subject: Recognise other channel prefixes and characters --- auto-server/auto_server.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'auto-server') diff --git a/auto-server/auto_server.pl b/auto-server/auto_server.pl index c409e5d..780763b 100644 --- a/auto-server/auto_server.pl +++ b/auto-server/auto_server.pl @@ -94,7 +94,7 @@ sub haxy_print_hook { my $data = $_[1]; # Hose control characters $data =~ s/\x04.//g; - if ($data =~ m/^#/) { + if ($data =~ m/^[#&!]/) { my @items = split /\s+/, $data; push(@hack_channels, $items[0]); push(@hack_channels, $items[1]); @@ -135,7 +135,7 @@ sub join_plus { # parse out channel name from args: my $channel; - if ($args =~ m/^(#?[#a-zA-Z0-9-]+)/) { + if ($args =~ m/^([#&!]?[^ ]+)/) { $channel = $1; _debug_print ("Channel is: $channel"); } -- cgit v1.2.3 From 09e42871973ea59b68787b14af6685f30fd750ad Mon Sep 17 00:00:00 2001 From: richo Date: Mon, 18 Jul 2011 13:39:15 +1000 Subject: at least on some networks, just a prefix is valid --- auto-server/auto_server.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'auto-server') diff --git a/auto-server/auto_server.pl b/auto-server/auto_server.pl index 780763b..ac0cd29 100644 --- a/auto-server/auto_server.pl +++ b/auto-server/auto_server.pl @@ -135,7 +135,7 @@ sub join_plus { # parse out channel name from args: my $channel; - if ($args =~ m/^([#&!]?[^ ]+)/) { + if ($args =~ m/^([#&!]?[^ ]*)/) { $channel = $1; _debug_print ("Channel is: $channel"); } -- cgit v1.2.3 From 214e1ef87d22e4368c3e2604b29621ecfcef5b29 Mon Sep 17 00:00:00 2001 From: richo Date: Mon, 1 Aug 2011 11:17:38 +1000 Subject: Updated docs --- auto-server/auto_server.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'auto-server') diff --git a/auto-server/auto_server.pl b/auto-server/auto_server.pl index ac0cd29..f5a26dd 100644 --- a/auto-server/auto_server.pl +++ b/auto-server/auto_server.pl @@ -5,8 +5,8 @@ # # the primary command used is /join+ #channelname # -# Mappings for channels to servers is accomplished with the -# joinplus_server_maps setting. +# Mappings for channels and servers are retrieved from irssi's internal +# /channel list # # Within this setting, space separated pairs denote channel, server pairs. # Spaces also separate individual pairs, for example: @@ -17,9 +17,9 @@ # will connect you, and then join that channel. # TODO: -# Autocompletion for channel names # address conflict resolution # fix that disgusting race condition +# Fix incredibly slow shutdown time after a few days use strict; use warnings; -- cgit v1.2.3 From 211aee49554e5c6691f00000f5e8bad8db6c49f3 Mon Sep 17 00:00:00 2001 From: richo Date: Wed, 21 Sep 2011 07:31:08 +1000 Subject: Remove deprecated docs --- auto-server/auto_server.pl | 5 ----- 1 file changed, 5 deletions(-) (limited to 'auto-server') diff --git a/auto-server/auto_server.pl b/auto-server/auto_server.pl index f5a26dd..8676726 100644 --- a/auto-server/auto_server.pl +++ b/auto-server/auto_server.pl @@ -8,11 +8,6 @@ # Mappings for channels and servers are retrieved from irssi's internal # /channel list # -# 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. -- cgit v1.2.3