Merge pull request #1332 from farooqkz/master

Added docstring for getIrc()
This commit is contained in:
James Lu 2018-03-26 08:10:12 -07:00 committed by GitHub
commit 75e6816e91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,6 +99,7 @@ commandsProcessed = 0
ircs = [] # A list of all the IRCs.
def getIrc(network):
"""Returns Irc object of the given network. <network> is string and not case-sensitive."""
network = network.lower()
for irc in ircs:
if irc.network.lower() == network: