public boolean allowsChannel(String channel)
{
- if (channels != null && channel != null)
+ if (channels != null)
for (String s : channels)
if (Acidictive.conf.getChannelNamed(s).equalsIgnoreCase(channel))
return true;
{
if (client != null && this.client.commands != null)
for (net.rizon.acid.conf.Command c : this.client.commands)
- if (c.name.equalsIgnoreCase(name) && c.allowsChannel(channel))
+ if (c.name.equalsIgnoreCase(name) && (channel == null || c.allowsChannel(channel)))
return c;
return null;
}
self.elog.debug('Started threads.')
return True
+ def onSync(self):
+ for channel in self.channels.list_valid():
+ self.msg('ChanServ', 'OP %s' % channel.name)
+
def stop(self):
if hasattr(self, 'auth'):
self.auth.stop()