mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 04:02:46 +01:00
Added getIrc.
This commit is contained in:
parent
a29c4b216a
commit
7c2e9f8990
@ -71,6 +71,13 @@ commandsProcessed = 0
|
||||
|
||||
ircs = [] # A list of all the IRCs.
|
||||
|
||||
def getIrc(network):
|
||||
network = network.lower()
|
||||
for irc in ircs:
|
||||
if irc.network.lower() == network:
|
||||
return irc
|
||||
return None
|
||||
|
||||
def _flushUserData():
|
||||
userdataFilename = os.path.join(conf.supybot.directories.conf(),
|
||||
'userdata.conf')
|
||||
|
Loading…
Reference in New Issue
Block a user