3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-01-23 18:54:05 +01:00

relay: treat network names case-sensitively

This commit is contained in:
James Lu 2016-04-02 12:15:53 -07:00
parent 02ec50826b
commit c01b449741

View File

@ -1300,7 +1300,7 @@ def link(irc, source, args):
If <local channel> is not specified, it defaults to the same name as <channel>."""
try:
channel = utils.toLower(irc, args[1])
remotenet = args[0].lower()
remotenet = args[0]
except IndexError:
irc.reply("Error: Not enough arguments. Needs 2-3: remote netname, channel, local channel name (optional).")
return
@ -1355,7 +1355,7 @@ def delink(irc, source, args):
irc.reply("Error: Not enough arguments. Needs 1-2: channel, remote netname (optional).")
return
try:
remotenet = args[1].lower()
remotenet = args[1]
except IndexError:
remotenet = None
utils.checkAuthenticated(irc, source)