From c9408a95f54515020a43c8d5ade5362037b933e4 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Fri, 18 Feb 2005 23:44:38 +0000 Subject: [PATCH] Re-added capability checking stuff. Boo. This needs refactored. --- src/callbacks.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/callbacks.py b/src/callbacks.py index 7182b5741..c2e69aa3b 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -1039,6 +1039,13 @@ class Commands(object): def _callCommand(self, command, irc, msg, *args, **kwargs): self.log.info('%s called by %q.', formatCommand(command), msg.prefix) + # XXX I'm being extra-special-careful here, but we need to refactor + # this. + for name in command: + cap = checkCommandCapability(msg, self, name) + if cap: + irc.errorNoCapability(cap) + return try: try: self.callingCommand = command