Okay, then that brings up my next question. Lets say I have an ON TEXT and any time someone says something on the room, I want to trace them. Now under the RAW Trace code I have several 'if' statements. So back in the ON TEXT I have 'set %ontext $true'. Then under the RAW Trace when it gets to the 'if (%ontext) { ...' it'll execute. Then at the end of that 'if' I have 'set %ontext $false' so that when the RAW trace gets called from something else like ON JOIN the ON TEXT 'if' wont get executed. Is this right?
raw 205:{
if (%ontext) {
...
set %ontext $false
}
elseif {
if (%onjoin) {
...
set %onjoin $false
}
else {
if (%smatch) {
...
set %smatch $false
}
haltdef
}
on *:join:#: {
...
set %onjoin $true
trace $nick
}
on *:text:*:#: {
...
set %ontext $true
trace $nick
}