Skip to content
Browse files

Merge pull request #1 from irae/delete

Added ability to tell a robot to remove a user.
  • Loading branch information...
2 parents 39c4a1b + 734285e commit fe32bb6c33ea84d9fd1a395df011e761d1437ade @knorrium knorrium committed May 14, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 Yahoo/Messenger/Client.php
View
4 Yahoo/Messenger/Client.php
@@ -240,6 +240,10 @@ public function run() {
$this->engine->changePresenceStatus($this->presence_state, $this->presence_status);
$out = 'My status is changed';
}
+ else if ($words[0] == 'delete') {
+ $this->engine->deleteContact($words[1], $words[2]);
+ $out = 'OK, I never wanted ' . $words[1] . ' on group ' . $words[2] . ' anyway...';
+ }
else if ($words[0] == 'signoff') {
$out = 'Goodbye!';
$this->engine->sendMessage($val['sender'], $out);

0 comments on commit fe32bb6

Please sign in to comment.
Something went wrong with that request. Please try again.