3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-23 11:12:42 +01:00

factalias command adds to global if channel \!~ /^#

This commit is contained in:
Pragmatic Software 2010-07-04 07:26:43 +00:00
parent 96db60d0fa
commit f53ebf7f88
2 changed files with 4 additions and 2 deletions

View File

@ -212,6 +212,8 @@ sub factalias {
return "Usage: factalias <channel> <keyword> <command>"; return "Usage: factalias <channel> <keyword> <command>";
} }
$chan = '.*' if $chan !~ /^#/;
my ($channel, $alias_trigger) = $self->{pbot}->factoids->find_factoid($chan, $alias, undef, 1); my ($channel, $alias_trigger) = $self->{pbot}->factoids->find_factoid($chan, $alias, undef, 1);
if(defined $alias_trigger) { if(defined $alias_trigger) {

View File

@ -13,8 +13,8 @@ use warnings;
# These are set automatically by the build/commit script # These are set automatically by the build/commit script
use constant { use constant {
BUILD_NAME => "PBot", BUILD_NAME => "PBot",
BUILD_REVISION => 228, BUILD_REVISION => 229,
BUILD_DATE => "2010-06-30", BUILD_DATE => "2010-07-04",
}; };
1; 1;