1 # Copyright (c) Twisted Matrix Laboratories.
2 # See LICENSE for details.
4 from zope.interface import classProvides
6 from twisted.plugin import IPlugin
8 from twisted.application.service import ServiceMaker
9 from twisted.words import iwords
12 NewTwistedWords = ServiceMaker(
15 "A modern words server",
18 TwistedXMPPRouter = ServiceMaker(
20 "twisted.words.xmpproutertap",
21 "An XMPP Router server",
24 class RelayChatInterface(object):
25 classProvides(IPlugin, iwords.IProtocolPlugin)
29 def getFactory(cls, realm, portal):
30 from twisted.words import service
31 return service.IRCFactory(realm, portal)
32 getFactory = classmethod(getFactory)
34 class PBChatInterface(object):
35 classProvides(IPlugin, iwords.IProtocolPlugin)
39 def getFactory(cls, realm, portal):
40 from twisted.spread import pb
41 return pb.PBServerFactory(portal, True)
42 getFactory = classmethod(getFactory)