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.
|
# Let's reset nicks in case we had to use a weird one.
|
||||||
self.alternateNicks = conf.supybot.nick.alternates()[:]
|
self.alternateNicks = conf.supybot.nick.alternates()[:]
|
||||||
umodes = conf.supybot.protocols.irc.umodes()
|
umodes = conf.supybot.protocols.irc.umodes()
|
||||||
umodes = umodes.lstrip('+')
|
|
||||||
if umodes:
|
if umodes:
|
||||||
log.info('Sending user modes to %s: +%s', self.network, umodes)
|
if umodes[0] not in '+-':
|
||||||
self.sendMsg(ircmsgs.mode(self.nick, '+%s' % umodes))
|
umodes = '+' + umodes
|
||||||
|
log.info('Sending user modes to %s: %s', self.network, umodes)
|
||||||
|
self.sendMsg(ircmsgs.mode(self.nick, umodes))
|
||||||
do377 = do422 = do376
|
do377 = do422 = do376
|
||||||
|
|
||||||
def do433(self, msg):
|
def do433(self, msg):
|
||||||
|
Loading…
Reference in New Issue
Block a user