Advertisement
Guest User

Untitled

a guest
Dec 7th, 2016
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.14 KB | None | 0 0
  1. def PyCRCtrlInit(ahost=None, irc=None, openclonk=False):
  2.         """
  3.        """
  4.         if not supybot.server:
  5.             if openclonk:
  6.                 supybot.server = PyOCCtrl(autohost=ahost, irc=irc,path="/home/tokgeo/OpenClonk", ingamechannel="#openclonk-atlantis",channel="#openclonk-atlantis")
  7.             else:
  8.                 supybot.server = PyCRCtrl(autohost=ahost, irc=irc,path="/home/tokgeo/Clonk Rage", ingamechannel="#clonk-SGGP-ingame",channel="#clonk-SGGP")
  9.             supybot.server.addCommand(supybot.server.start, "start")
  10.             supybot.server.addCommand(supybot.server.stop, "stop")
  11.             supybot.server.addCommand(supybot.server.host, "host")
  12.             supybot.server.addCommand(supybot.server.displayQueue, "queue")
  13.             supybot.server.addCommand(supybot.server.help, "help")
  14.             supybot.server.addCommand(supybot.server.list, "list")
  15.             supybot.server.addCommand(supybot.server.ircCommands, "irc")
  16.         else:
  17.             if ahost != None:
  18.                 supybot.server.autohost = ahost
  19.             if irc != None:
  20.                 supybot.server.irc = irc
  21.         return supybot.server
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement