Skip to content

Commit

Permalink
Add newline to colordict
Browse files Browse the repository at this point in the history
  • Loading branch information
darkf committed Mar 5, 2010
1 parent 928a69a commit 6ea3495
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pyscripts/plugins/motd.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
@eventHandler('player_connect_delayed')
def greet(cn):
p = player(cn)
p.message(motdstring.substitute(colordict, name=p.name(), newline='\n'))
p.message(motdstring.substitute(colordict, name=p.name()))
3 changes: 2 additions & 1 deletion src/pyscripts/xsbs/colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ def white(text=None):
'grey' : grey(),
'magenta': magenta(),
'orange': orange(),
'white': white() }
'white': white(),
'newline': '\n' }

def colorstring(str, text):
textcolor(colordict[str],text)

0 comments on commit 6ea3495

Please sign in to comment.