Showing 1 changed files with 1 additions and 2 deletions
+1 -2
sms/bot
... ...
@@ -527,9 +527,8 @@ sub from_gtalksms_parse {
527 527
 $from_gtalksms->detach; # gère la file des événements produits par GTalkSMS
528 528
 $to_gtalksms->detach;   # gère la file des envois de SMS par GTalkSMS
529 529
 $mail->detach;          # gère la file des mails
530
-$bot->SetMessageCallBacks(chat => \&messageCB);
530
+$bot->SetMessageCallBacks(message => \&messageCB);
531 531
 
532
-#print "Logged in to $hostName:$portNumber...\n";
533 532
 $bot->PresenceSend();
534 533
 my $roster = $bot->Roster;
535 534
 $roster->add($cfg::config{xmpp}->{phoneBuddy});