From a715271f847fed7d7c725c5b752ea7a00800520a Mon Sep 17 00:00:00 2001 From: Craig Andrews Date: Thu, 11 Mar 2010 20:40:25 -0500 Subject: reuse Subscription::cancel instead of reimplementing it. I didn't know this method existed before... pretty neat. --- lib/command.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/command.php') 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)); -- cgit v1.2.3-54-g00ecf