Merge pull request #200 from Tastyfish/master

make pailiza(pAI chatbot) tell parser less confusing
This commit is contained in:
Tastyfish
2012-01-02 15:54:47 -08:00
+3 -6
View File
@@ -353,13 +353,10 @@
process(object)
// get name & message
var/i = findtext(object, " that ")
var/sl = 6
var/i = findtext(object, ",")
var/sl = 1
if(!i || lentext(object) < i + sl)
i = findtext(object, ",")
sl = 1
if(!i || lentext(object) < i + sl)
return "Tell who that you what?"
return "Tell who that you what?"
var/name = trim(copytext(object, 1, i))
object = trim(copytext(object, i + sl))