We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2992d3 commit 70e3ac6Copy full SHA for 70e3ac6
backends/async.py
@@ -100,8 +100,14 @@ def reload_module(self, module):
100
101
def handle_connect(self):
102
self.output('Connected')
103
- self.push('NICK %s\r\nUSER %s 0 0 :%s\r\n' %
104
- (config.nick, config.ident, config.ircname))
+ mode_numeric = 0
+ umodes = api.get_config_str("main", "umodes") or ''
105
+ if 'w' in umodes:
106
+ mode_numeric += 1 << 2 # Set bit 2 (rfc2812#section-3.1.3)
107
+ if 'i' in umodes:
108
+ mode_numeric += 1 << 3 # Set bit 3 (rfc2812#section-3.1.3)
109
+ self.push('NICK %s\r\nUSER %s %d * :%s\r\n' %
110
+ (config.nick, config.ident, mode_numeric, config.ircname))
111
112
def get_data(self):
113
ret = self.data
0 commit comments