help_general_line_3: 'Die folgenden Befehle stehen auΓerdem zur VerfΓΌgung'
help_general_line_say: 'Nutze: ?sage #channel Nachricht'
help_general_line_lost: 'Nutze: ?lost'
+ lost_only_in_commandchannel: 'Der "lost" Befehl ist nur im Adminchannel erlaubt'
search_bad_parameters: 'Falsche Parameter'
search_no_new_keywords: 'Alle SchlΓΌsselwΓΆrter existieren bereits in der Datenbank'
search_add_1_keyword: '1 SchlΓΌsselwort erfolgreich hinzugefΓΌgt'
push(@commands, 'join: ' . $main::statistics{'command_counter_join'});
push(@commands, 'leave: ' . $main::statistics{'command_counter_leave'});
push(@commands, 'status: ' . $main::statistics{'command_counter_status'});
+ push(@commands, 'lost: ' . $main::statistics{'command_counter_lost'});
$irc->yield( privmsg => $channel, 'Number of executed IRC commands: ' . join(", ", @commands) );
$irc->yield( privmsg => $channel, 'Number of denied IRC requests: ' . $main::statistics{'command_access_denied'} );
# 'lost' goes to the command channel only
if (lc($channel) eq lc($irc->nick_name())) {
- return 'The "lost" command is only allowed in the command channel';
+ my $answer = 'The "lost" command is only allowed in the command channel';
+ # translate error message
+ $answer = translate_text_for_channel($channel, 'lost_only_in_commandchannel', $answer);
+ return $answer;
}
if (lc($channel) ne lc(config_get_key2('bot', 'commandchannel'))) {
- return 'The "lost" command is only allowed in the command channel';
+ my $answer = 'The "lost" command is only allowed in the command channel';
+ # translate error message
+ $answer = translate_text_for_channel($channel, 'lost_only_in_commandchannel', $answer);
+ return $answer;
}