3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 09:19:23 +01:00

relay: on clientbot, explain _why_ calling LINK twice is needed

This commit is contained in:
James Lu 2016-08-11 12:51:08 -07:00
parent b4e83e7b1a
commit e75c0d075f

View File

@ -1588,7 +1588,7 @@ def link(irc, source, args):
# require that the caller be opped. # require that the caller be opped.
if localchan not in irc.pseudoclient.channels: if localchan not in irc.pseudoclient.channels:
irc.proto.join(irc.pseudoclient.uid, localchan) irc.proto.join(irc.pseudoclient.uid, localchan)
irc.reply('Joining %r now; please run this command again in a few seconds.' % localchan) irc.reply('Joining %r now to check for op status; please run this command again after I join.' % localchan)
return return
elif not irc.channels[localchan].isOpPlus(source): elif not irc.channels[localchan].isOpPlus(source):
irc.reply('Error: You must be opped in %r to complete this operation.' % localchan) irc.reply('Error: You must be opped in %r to complete this operation.' % localchan)