Better default for MUC nickname
This commit is contained in:
parent
635c0b4036
commit
56e29c898a
@ -800,6 +800,8 @@ class Server:
|
||||
|
||||
def add_muc(self, room, nickname):
|
||||
""" Add a new buddy """
|
||||
if not nickname:
|
||||
nickname = self.option_string("jid").split('@')[0]
|
||||
muc = MUC(jid=room, server=self)
|
||||
resource = "%s/%s" % (room, nickname)
|
||||
xmpp_room = xmpp.protocol.JID(resource)
|
||||
@ -1715,7 +1717,7 @@ def jabber_cmd_room(data, buffer, args):
|
||||
argv = args.split()
|
||||
room = argv[0]
|
||||
if len(argv) == 1:
|
||||
nickname = "weechat" #TODO add a config parameter for default nickname
|
||||
nickname = None
|
||||
else:
|
||||
nickname = argv[1]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user