mirror of
https://github.com/jlu5/PyLink.git
synced 2025-02-02 23:54:08 +01:00
relay: treat network names case-sensitively
This commit is contained in:
parent
02ec50826b
commit
c01b449741
@ -1300,7 +1300,7 @@ def link(irc, source, args):
|
|||||||
If <local channel> is not specified, it defaults to the same name as <channel>."""
|
If <local channel> is not specified, it defaults to the same name as <channel>."""
|
||||||
try:
|
try:
|
||||||
channel = utils.toLower(irc, args[1])
|
channel = utils.toLower(irc, args[1])
|
||||||
remotenet = args[0].lower()
|
remotenet = args[0]
|
||||||
except IndexError:
|
except IndexError:
|
||||||
irc.reply("Error: Not enough arguments. Needs 2-3: remote netname, channel, local channel name (optional).")
|
irc.reply("Error: Not enough arguments. Needs 2-3: remote netname, channel, local channel name (optional).")
|
||||||
return
|
return
|
||||||
@ -1355,7 +1355,7 @@ def delink(irc, source, args):
|
|||||||
irc.reply("Error: Not enough arguments. Needs 1-2: channel, remote netname (optional).")
|
irc.reply("Error: Not enough arguments. Needs 1-2: channel, remote netname (optional).")
|
||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
remotenet = args[1].lower()
|
remotenet = args[1]
|
||||||
except IndexError:
|
except IndexError:
|
||||||
remotenet = None
|
remotenet = None
|
||||||
utils.checkAuthenticated(irc, source)
|
utils.checkAuthenticated(irc, source)
|
||||||
|
Loading…
Reference in New Issue
Block a user