mirror of
https://github.com/gryf/weechat-xmpp.git
synced 2025-12-20 12:58:04 +01:00
[mod] blank lines for lisibility
This commit is contained in:
@@ -832,15 +832,22 @@ 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)
|
||||
pres = xmpp.Presence(to=xmpp_room)
|
||||
|
||||
self.client.send(pres)
|
||||
|
||||
muc.resource = muc.resource.encode("utf-8")
|
||||
|
||||
self.buddies.append(muc)
|
||||
|
||||
return muc
|
||||
|
||||
def display_buddies(self):
|
||||
|
||||
Reference in New Issue
Block a user