Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def PyCRCtrlInit(ahost=None, irc=None, openclonk=False):
- """
- """
- if not supybot.server:
- if openclonk:
- supybot.server = PyOCCtrl(autohost=ahost, irc=irc,path="/home/tokgeo/OpenClonk", ingamechannel="#openclonk-atlantis",channel="#openclonk-atlantis")
- else:
- supybot.server = PyCRCtrl(autohost=ahost, irc=irc,path="/home/tokgeo/Clonk Rage", ingamechannel="#clonk-SGGP-ingame",channel="#clonk-SGGP")
- supybot.server.addCommand(supybot.server.start, "start")
- supybot.server.addCommand(supybot.server.stop, "stop")
- supybot.server.addCommand(supybot.server.host, "host")
- supybot.server.addCommand(supybot.server.displayQueue, "queue")
- supybot.server.addCommand(supybot.server.help, "help")
- supybot.server.addCommand(supybot.server.list, "list")
- supybot.server.addCommand(supybot.server.ircCommands, "irc")
- else:
- if ahost != None:
- supybot.server.autohost = ahost
- if irc != None:
- supybot.server.irc = irc
- return supybot.server
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement