Skip to content

Commit

Permalink
Merge pull request knorrium#1 from irae/delete
Browse files Browse the repository at this point in the history
Added ability to tell a robot to remove a user.
  • Loading branch information
knorrium committed May 14, 2012
2 parents 39c4a1b + 734285e commit fe32bb6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Yahoo/Messenger/Client.php
Expand Up @@ -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);
Expand Down

0 comments on commit fe32bb6

Please sign in to comment.