mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-23 03:02:47 +01:00
factalias command adds to global if channel \!~ /^#
This commit is contained in:
parent
96db60d0fa
commit
f53ebf7f88
@ -212,6 +212,8 @@ sub factalias {
|
||||
return "Usage: factalias <channel> <keyword> <command>";
|
||||
}
|
||||
|
||||
$chan = '.*' if $chan !~ /^#/;
|
||||
|
||||
my ($channel, $alias_trigger) = $self->{pbot}->factoids->find_factoid($chan, $alias, undef, 1);
|
||||
|
||||
if(defined $alias_trigger) {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user