my %keywords = map { $_, 1 } @keywords;
@keywords = keys(%keywords);
+ if (is_a_channel($channel)) {
+ send_to_commandchannel("learn, by $nick in $channel: $string");
+ } else {
+ send_to_commandchannel("learn, by $nick: $string");
+ }
$main::db->rollback();
my @keys = split(/\s+/, $string);
my $url_pattern = config_get_key2('search', 'urlpattern');
+ if (is_a_channel($channel)) {
+ send_to_commandchannel("forget, by $nick in $channel: $string");
+ } else {
+ send_to_commandchannel("forget, by $nick: $string");
+ }
+
$main::db->rollback();
- track each channel message and see, if the bot was mentioned
- Log::Log4perl?
- provide hook for depesz to catch all URLs and scan them for explain's
-- post important commands into commandchannel
- even in info log modus, post more infos to the log about the current commans
- allow a password for the ?join command OK
- verify channel list from time to time, autojoin missing channels OK
- nickserv handling (passwords) OK
+- post important commands into commandchannel OK