From 15820b2a225f4e5f6ca48f1d87ccc7c54ce6149e Mon Sep 17 00:00:00 2001 From: Alexandre Morignot <erdnaxeli@gmail.com> Date: Thu, 16 Oct 2014 17:46:37 +0200 Subject: [PATCH] handle somes errors (to better insult the user) --- lib/commands/parser.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/commands/parser.pm b/lib/commands/parser.pm index 6b1ea97..0817433 100644 --- a/lib/commands/parser.pm +++ b/lib/commands/parser.pm @@ -103,6 +103,9 @@ sub exec { $irc->yield(privmsg => $nick => "Toutes les commandes fonctionnent en query."); $irc->yield(privmsg => $nick => 'Niveau vie privée, potentiellement toute commande (excepté !help) entraine un enregistrement dans la base de données avec au minimum la date et l\'heure et le nick de la personne ayant exécuté la commande.'); } + elsif ($msg =~/^ *!(fav|lat|tag|get)/) { + $irc->yield(privmsg => $chan->[0] => $insultes[rand @insultes]); + } else { return 0; } -- GitLab