diff --git a/PBot/FactoidCommands.pm b/PBot/FactoidCommands.pm index aa9edbe2..28103540 100644 --- a/PBot/FactoidCommands.pm +++ b/PBot/FactoidCommands.pm @@ -212,6 +212,8 @@ sub factalias { return "Usage: factalias "; } + $chan = '.*' if $chan !~ /^#/; + my ($channel, $alias_trigger) = $self->{pbot}->factoids->find_factoid($chan, $alias, undef, 1); if(defined $alias_trigger) { diff --git a/PBot/VERSION.pm b/PBot/VERSION.pm index 5014b938..b33210cb 100644 --- a/PBot/VERSION.pm +++ b/PBot/VERSION.pm @@ -13,8 +13,8 @@ use warnings; # These are set automatically by the build/commit script use constant { BUILD_NAME => "PBot", - BUILD_REVISION => 228, - BUILD_DATE => "2010-06-30", + BUILD_REVISION => 229, + BUILD_DATE => "2010-07-04", }; 1;