mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 11:39:25 +01:00
Merge branch 'master' into devel
This commit is contained in:
commit
0371b21634
@ -1012,6 +1012,10 @@ def create(irc, source, args):
|
|||||||
irc.msg(source, 'Error: You must be in %r to complete this operation.' % channel)
|
irc.msg(source, 'Error: You must be in %r to complete this operation.' % channel)
|
||||||
return
|
return
|
||||||
utils.checkAuthenticated(irc, source)
|
utils.checkAuthenticated(irc, source)
|
||||||
|
localentry = getRelay((irc.name, channel))
|
||||||
|
if localentry:
|
||||||
|
irc.msg(source, 'Error: Channel %r is already part of a relay.' % channel)
|
||||||
|
return
|
||||||
db[(irc.name, channel)] = {'claim': [irc.name], 'links': set(), 'blocked_nets': set()}
|
db[(irc.name, channel)] = {'claim': [irc.name], 'links': set(), 'blocked_nets': set()}
|
||||||
initializeChannel(irc, channel)
|
initializeChannel(irc, channel)
|
||||||
irc.msg(source, 'Done.')
|
irc.msg(source, 'Done.')
|
||||||
|
Loading…
Reference in New Issue
Block a user