~ubuntu-branches/ubuntu/precise/gozerbot/precise

« back to all changes in this revision

Viewing changes to gozerplugs/web/dispatch.py

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Malcolm
  • Date: 2008-06-02 19:26:39 UTC
  • mfrom: (1.1.3 upstream) (3.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080602192639-3rn65nx4q1sgd6sy
Tags: 0.8.1-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
__copyright__ = 'this file is in the public domain'
8
8
 
9
 
from gozerbot.generic import waitforqueue
 
9
from gozerbot.generic import waitforqueue, handle_exception
10
10
from gozerbot.fleet import fleet
11
11
from gozerbot.ircevent import Ircevent
12
12
from gozerbot.plugins import plugins
18
18
def handle_dispatch(event):
19
19
    """ dispatch web request """
20
20
    input = unquote_plus(event.path)
21
 
    bot = fleet.getmainbot()
 
21
    bot = fleet.getfirstbot()
22
22
    ievent = Ircevent()
23
23
    try:
24
24
        what = input.split('?', 1)[1]