mirror of
https://git.wownero.com/wownero/tippero.git
synced 2024-08-15 00:33:14 +00:00
Starting networks is now via command line, and parameterized
This commit is contained in:
parent
50455a0d08
commit
1d3f650bba
5 changed files with 86 additions and 21 deletions
|
@ -18,8 +18,8 @@ from tipbot.command_manager import *
|
|||
from irc import *
|
||||
|
||||
class FreenodeNetwork(IRCNetwork):
|
||||
def __init__(self):
|
||||
IRCNetwork.__init__(self,"freenode")
|
||||
def __init__(self,name):
|
||||
IRCNetwork.__init__(self,name)
|
||||
|
||||
def login(self):
|
||||
self.send_to("nickserv", "IDENTIFY %s" % self.password)
|
||||
|
@ -52,3 +52,4 @@ class FreenodeNetwork(IRCNetwork):
|
|||
log_error('ACC line not as expected...')
|
||||
return True
|
||||
|
||||
RegisterNetwork("freenode",FreenodeNetwork)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue