Commit eda88a59 authored by mathieui's avatar mathieui

Add back the deny_anonymous decorator to /add and /accept

parent 2eb362ff
......@@ -17,11 +17,12 @@ from slixmpp.xmlstream.matcher import StanzaPath
from poezio import common
from poezio import pep
from poezio import tabs
from poezio import multiuserchat as muc
from poezio.bookmarks import Bookmark
from poezio.common import safeJID
from poezio.config import config, DEFAULT_CONFIG, options as config_opts
from poezio import multiuserchat as muc
from import Contact, Resource
from poezio.decorators import deny_anonymous
from poezio.plugin import PluginConfig
from poezio.roster import roster
from poezio.theming import dump_tuple, get_theme
......@@ -517,6 +518,7 @@ class CommandCore:
self.core.information('No bookmark to remove', 'Info')
@command_args_parser.quoted(0, 1)
def command_accept(self, args):
......@@ -553,6 +555,7 @@ class CommandCore:
pto=jid, ptype='subscribe', pnick=self.core.own_nick)
self.core.information('%s is now authorized' % jid, 'Roster')
def command_add(self, args):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment