startswith is more clean
This commit is contained in:
parent
56dbcd1819
commit
fe33eb8399
1 changed files with 1 additions and 1 deletions
|
@ -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 + '> '
|
||||
|
|
Loading…
Add table
Reference in a new issue