proc
wordfilter(m as text)
var/p
m = " " + copytext(m,1) + " "
// Goodity
if(goodity.len)
for(var/i=1,i<=goodity.len,i++)
p = findtext(m,goodity[i])
while(p)
usr.fs+=1
// Profanity
if(profanity.len)
for(var/i=1,i<=profanity.len,i++)
p = findtext(m,profanity[i])
while(p)
usr.fs-=1
return m
What happens is, when you say a word in the good list, your 'fs' goes up, and it goes down when you say a word from the bad list. When I do this, heres the runtime I get:
Infinite loop suspected--switching proc to background.
If it is not an infinite loop, either do 'set background=1' or set world.loop_checks=0.
proc name: wordfilter (/proc/wordfilter)
usr: FireEmblem (/mob)
src: null
call stack:
wordfilter(" Hi Friend Goodity ")
FireEmblem (/mob): Ask Question()
Anybody think they can help me with this? Thanks!