3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-24 03:29:28 +01:00

Merge branch 'master' into devel

This commit is contained in:
James Lu 2015-09-17 19:25:51 -07:00
commit 0371b21634

View File

@ -1012,6 +1012,10 @@ def create(irc, source, args):
irc.msg(source, 'Error: You must be in %r to complete this operation.' % channel)
return
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()}
initializeChannel(irc, channel)
irc.msg(source, 'Done.')