Finished moving stuff around, things should be in mostly working order now.

This commit is contained in:
Greg Taylor 2008-06-15 20:31:25 +00:00
parent fd264667b8
commit a954069776
11 changed files with 27 additions and 28 deletions

0
src/util/__init__.py Normal file
View file

View file

@ -3,7 +3,6 @@ General functions that don't fit neatly under any given category.
"""
import os
import textwrap
from src import session_mgr
def wildcard_to_regexp(instring):
"""
@ -99,18 +98,6 @@ def time_format(seconds, style=0):
retval = '%s%s%s%s' % (days_str, hours_str, minutes_str, seconds_str,)
return retval
def announce_all(message, with_ann_prefix=True):
"""
Announces something to all connected players.
"""
if with_ann_prefix:
prefix = 'Announcement:'
else:
prefix = ''
for session in session_mgr.get_session_list():
session.msg('%s %s' % (prefix, message))
def word_wrap(text, width=78):
"""
Wrap text to a certain number of characters.