Skip to content

Commit

Permalink
Remove comments and add ${newline} to motd
Browse files Browse the repository at this point in the history
  • Loading branch information
darkf committed Mar 4, 2010
1 parent 2e1f6fc commit 928a69a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/pyscripts/plugins/motd.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
from xsbs.players import player
import string

#config = PluginConfig('motd')
#motdstring = config.getOption('Config', 'template', '${orange}Welcome to a ${red}XSBS ${orange}server, ${green}${name}${white}!')

config = {
'Templates': {
'motd': '${orange}Welcome to a ${red}XSBS ${orange}server, ${green}${name}${white}!'
Expand All @@ -19,4 +16,4 @@
@eventHandler('player_connect_delayed')
def greet(cn):
p = player(cn)
p.message(motdstring.substitute(colordict, name=p.name()))
p.message(motdstring.substitute(colordict, name=p.name(), newline='\n'))

0 comments on commit 928a69a

Please sign in to comment.