diff options
author | Craig Andrews <candrews@integralblue.com> | 2010-03-11 20:40:25 -0500 |
---|---|---|
committer | Craig Andrews <candrews@integralblue.com> | 2010-03-11 20:40:25 -0500 |
commit | a715271f847fed7d7c725c5b752ea7a00800520a (patch) | |
tree | 1ad234842499d59834d0dffcb45e2ea086e1602e /lib/command.php | |
parent | d6e0640251b91928fc65324438000d91f12cecf0 (diff) |
reuse Subscription::cancel instead of reimplementing it.
I didn't know this method existed before... pretty neat.
Diffstat (limited to 'lib/command.php')
-rw-r--r-- | lib/command.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/command.php b/lib/command.php index 0b3b3c95a..3809c98cc 100644 --- a/lib/command.php +++ b/lib/command.php @@ -729,7 +729,7 @@ class LoseCommand extends Command return; } - $result=subs_unsubscribe_from($this->user, $this->other); + $result = Subscription::cancel($this->other, $this->user); if ($result) { $channel->output($this->user, sprintf(_('Unsubscribed %s'), $this->other)); |