3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-01 17:16:39 +02:00

factchange usage output appears in channge instead of /msg; aliased change to factchange

This commit is contained in:
Pragmatic Software 2010-06-23 02:18:26 +00:00
parent 48e1c8c455
commit e0a2fc25e8
3 changed files with 16 additions and 5 deletions

View File

@ -589,7 +589,7 @@ sub factchange {
} }
if(not defined $channel or not defined $changeto) { if(not defined $channel or not defined $changeto) {
return "/msg $nick Usage: factchange <channel> <keyword> s/<pattern>/<replacement>/"; return "Usage: factchange <channel> <keyword> s/<pattern>/<replacement>/";
} }
($channel, $trigger) = $self->{pbot}->factoids->find_factoid($channel, $keyword); ($channel, $trigger) = $self->{pbot}->factoids->find_factoid($channel, $keyword);

View File

@ -13,7 +13,7 @@ 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 => 198, BUILD_REVISION => 200,
BUILD_DATE => "2010-06-22", BUILD_DATE => "2010-06-22",
}; };

View File

@ -3488,10 +3488,10 @@ type: text
action: /call factalias action: /call factalias
created_on: 1277259091.375 created_on: 1277259091.375
enabled: 1 enabled: 1
last_referenced_on: 1277259146.81587 last_referenced_on: 1277259441.23438
owner: pbot3 owner: pbot3
rate_limit: 15 rate_limit: 15
ref_count: 3 ref_count: 4
ref_user: pbot3 ref_user: pbot3
type: text type: text
@ -4411,6 +4411,17 @@ ref_count: 0
ref_user: nobody ref_user: nobody
type: text type: text
<change>
action: /call factchange
created_on: 1277259441.33026
enabled: 1
last_referenced_on: 1277259445.87274
owner: pbot3
rate_limit: 15
ref_count: 1
ref_user: pbot3
type: text
<changelist> <changelist>
action: http://code.google.com/p/pbot2-pl/source/list action: http://code.google.com/p/pbot2-pl/source/list
created_on: 1275818314 created_on: 1275818314
@ -9884,7 +9895,7 @@ type: text
<version> <version>
action: /say PBot revision 198 2010-06-22 action: /say PBot revision 198 2010-06-22
created_on: 1277259006.35938 created_on: 1277259434.96875
enabled: 1 enabled: 1
last_referenced_on: 1277163757.64518 last_referenced_on: 1277163757.64518
owner: pbot3 owner: pbot3