startswith is more clean

This commit is contained in:
Nikos Kouremenos 2005-03-05 21:59:04 +00:00
parent 56dbcd1819
commit fe33eb8399
1 changed files with 1 additions and 1 deletions

View File

@ -577,7 +577,7 @@ class tabbed_chat_window:
tag = 'incoming'
name = user.name
if text.find('/me ') == 0:
if text.startswith('/me'):
ttext = name + ' ' + text[4:] + '\n'
else:
ttext = '<' + name + '> '