Added getIrc.

This commit is contained in:
Jeremy Fincher 2004-12-16 08:10:09 +00:00
parent a29c4b216a
commit 7c2e9f8990
1 changed files with 7 additions and 0 deletions

View File

@ -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')