mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 20:22:45 +01:00
Merge pull request #1332 from farooqkz/master
Added docstring for getIrc()
This commit is contained in:
commit
75e6816e91
@ -99,6 +99,7 @@ commandsProcessed = 0
|
|||||||
ircs = [] # A list of all the IRCs.
|
ircs = [] # A list of all the IRCs.
|
||||||
|
|
||||||
def getIrc(network):
|
def getIrc(network):
|
||||||
|
"""Returns Irc object of the given network. <network> is string and not case-sensitive."""
|
||||||
network = network.lower()
|
network = network.lower()
|
||||||
for irc in ircs:
|
for irc in ircs:
|
||||||
if irc.network.lower() == network:
|
if irc.network.lower() == network:
|
||||||
|
Loading…
Reference in New Issue
Block a user