~ntt-pf-lab/nova/monkey_patch_notification

« back to all changes in this revision

Viewing changes to vendor/Twisted-10.0.0/twisted/words/im/tap.py

  • Committer: Jesse Andrews
  • Date: 2010-05-28 06:05:26 UTC
  • Revision ID: git-v1:bf6e6e718cdc7488e2da87b21e258ccc065fe499
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright (c) 2001-2004 Twisted Matrix Laboratories.
 
2
# See LICENSE for details.
 
3
 
 
4
#
 
5
 
 
6
from twisted.words.im.proxyui import IRCUIFactory
 
7
from twisted.python import usage
 
8
 
 
9
class Options(usage.Options):
 
10
    optParameters = [["ircport", "p", "6667",
 
11
                      "Port to start the IRC server on."]]
 
12
 
 
13
def updateApplication(app, config):
 
14
    factory = IRCUIFactory()
 
15
    app.listenTCP(int(config.opts['ircport']), IRCUIFactory())