Added getIrc.

This commit is contained in:
Jeremy Fincher 2004-12-16 08:10:09 +00:00
parent a29c4b216a
commit 7c2e9f8990

View File

@ -71,6 +71,13 @@ commandsProcessed = 0
ircs = [] # A list of all the IRCs. 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(): def _flushUserData():
userdataFilename = os.path.join(conf.supybot.directories.conf(), userdataFilename = os.path.join(conf.supybot.directories.conf(),
'userdata.conf') 'userdata.conf')