[wpdev-commits] xmlscripts/scripts/speech stablemaster.py,1.8,1.9
Brought to you by:
rip,
thiagocorrea
From: spddmn <xxx...@us...> - 2004-09-04 08:31:43
|
Update of /cvsroot/wpdev/xmlscripts/scripts/speech In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30264/speech Modified Files: stablemaster.py Log Message: script update for stables 1.0 Index: stablemaster.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/speech/stablemaster.py,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** stablemaster.py 26 May 2004 13:07:25 -0000 1.8 --- stablemaster.py 4 Sep 2004 08:31:34 -0000 1.9 *************** *** 112,119 **** def onSpeech( listener, speaker, text, keywords ): # Check if our name is in the beginning of the string ! #if not text.lower().startswith( listener.name.lower() ): ! #return 0 gump = cGump( 0, 0, 0, 50, 50 ) gump.addBackground( 0x24a4, 425, 400 ) --- 112,123 ---- def onSpeech( listener, speaker, text, keywords ): + if not char.socket: + return 0 + # Check if our name is in the beginning of the string ! if not text.lower().startswith( "vendor" ) or not text.lower().startswith( listener.name.lower() ): ! return 0 + speaker.char.socket.sysmessage("May I help thee?") gump = cGump( 0, 0, 0, 50, 50 ) gump.addBackground( 0x24a4, 425, 400 ) |