Added docstring for getIrc()

This commit is contained in:
Farooq Karimi Zadeh 2018-03-26 13:40:15 +04:30 committed by GitHub
parent 5daaa14825
commit 3a4b77cefd
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: