Skip to content

Commit

Permalink
Merge branch 'irc' of git@github.com:greghaynes/xsbs into irc
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandru Stan committed Mar 21, 2010
2 parents 8c5d50c + fdfbf9c commit ffbe201
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pyscripts/plugins/ircbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from xsbs.settings import loadPluginConfig, NoOptionError
from xsbs.events import registerServerEventHandler
from xsbs.timers import addTimer
from xsbs.server import message
from xsbs.server import message, masterModeName

import sbserver

Expand Down Expand Up @@ -168,7 +168,7 @@ def dotemplate(ability, **args):
'spectated': ('player_spectated', lambda cn: dotemplate('spectated', name=sbserver.playerName(cn), cn=cn)),
'unspectated': ('player_unspectated', lambda cn: dotemplate('unspectated', name=sbserver.playerName(cn), cn=cn)),
'kicked': ('player_kick', lambda cn, who: dotemplate('kicked', by=sbserver.playerName(cn), bycn=cn, name=sbserver.playerName(who), cn=who)),
'mastermode_changed': ('server_mastermode_changed', lambda mm: dotemplate('mastermode_changed', mm=mm, mode=sbserver.modeName(mm))),
'mastermode_changed': ('server_mastermode_changed', lambda mm: dotemplate('mastermode_changed', mm=mm, mode=masterModeName(mm))),
'clearbans': ('server_clear_bans', lambda cn: dotemplate('clearbans', name=sbserver.playerName(cn), cn=cn))
}

Expand Down

0 comments on commit ffbe201

Please sign in to comment.