mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-18 16:12:42 +01:00
Better handling of umodes.
This commit is contained in:
parent
0cd0a44e7d
commit
61e09d453a
@ -690,10 +690,11 @@ class Irc(IrcCommandDispatcher):
|
||||
# Let's reset nicks in case we had to use a weird one.
|
||||
self.alternateNicks = conf.supybot.nick.alternates()[:]
|
||||
umodes = conf.supybot.protocols.irc.umodes()
|
||||
umodes = umodes.lstrip('+')
|
||||
if umodes:
|
||||
log.info('Sending user modes to %s: +%s', self.network, umodes)
|
||||
self.sendMsg(ircmsgs.mode(self.nick, '+%s' % umodes))
|
||||
if umodes[0] not in '+-':
|
||||
umodes = '+' + umodes
|
||||
log.info('Sending user modes to %s: %s', self.network, umodes)
|
||||
self.sendMsg(ircmsgs.mode(self.nick, umodes))
|
||||
do377 = do422 = do376
|
||||
|
||||
def do433(self, msg):
|
||||
|
Loading…
Reference in New Issue
Block a user