Added a warning log.

This commit is contained in:
Jeremy Fincher 2005-01-04 03:49:39 +00:00
parent 3736f6d582
commit aa73b5dd81

View File

@ -137,6 +137,11 @@ class Admin(privmsgs.CapabilityCheckingPrivmsg):
networkGroup = conf.supybot.networks.get(irc.network)
irc.queueMsg(networkGroup.channels.join(channel))
conf.supybot.networks.get(irc.network).channels().add(channel)
else:
self.log.warning('Invited to %s by %s, but '
'supybot.alwaysJoinOnInvite was False and '
'the user lacked the "admin" capability.',
channel, msg.prefix)
def join(self, irc, msg, args, channel, key):
"""<channel> [<key>]