aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorricho <richo@psych0tik.net>2011-07-18 03:37:38 +0000
committerricho <richo@psych0tik.net>2011-07-18 03:38:48 +0000
commit3c37b460cb63c35f2ef7733bd06c0fe4533a912c (patch)
tree4179db44e5652dab7e6c879af85f97027360127e
parentMerge pull request #9 from sm00th/tinyurl-tabcomplete (diff)
downloadirssi-scripts-3c37b460cb63c35f2ef7733bd06c0fe4533a912c.tar.gz
irssi-scripts-3c37b460cb63c35f2ef7733bd06c0fe4533a912c.zip
Recognise other channel prefixes and characters
-rw-r--r--auto-server/auto_server.pl4
1 files changed, 2 insertions, 2 deletions
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");
}