fix callwords
This commit is contained in:
parent
f13d9cf754
commit
f1eb849d8d
@ -2527,10 +2527,10 @@ class gui(QtGui.QWidget):
|
||||
self.char.play_idle(f_char, f_emote, self.scaling[0])
|
||||
self.anim_state = 3
|
||||
|
||||
if exists(AOpath+"callwords.ini"):
|
||||
callwords = [line.rstrip() for line in open(AOpath+"callwords.ini")]
|
||||
if exists(AO2XPpath+"callwords.ini"):
|
||||
callwords = [line.rstrip() for line in open(AO2XPpath+"callwords.ini")]
|
||||
for callword in callwords:
|
||||
if callword.lower() in self.m_chatmessage[CHATMSG].lower():
|
||||
if callword.decode('utf-8').lower() in self.m_chatmessage[CHATMSG].lower().split(" "):
|
||||
self.ooclog.append("<b>%s called you.</b>" % f_char)
|
||||
snd = audio.loadhandle(False, "word_call.wav", 0, 0, BASS_STREAM_AUTOFREE)
|
||||
if snd:
|
||||
|
Loading…
Reference in New Issue
Block a user