Skip to content
General IRCX

Event: Notice; Problem: If statements

A TG007 community discussion started by Josh`.

Discussion 9 posts
Page 1 of 1
Open
Topic #3040 · 9 published posts · 1,509 views

on ^*:notice:*:*:{
 if ($1- == "AWAY") { 
   echo # $nick is now away.
 }
 if ($1- == "BACK") {
   echo # $nick has returned.
 }
 else {
   echo # - $+ $nick $+ - $1-
 }
 haltdef
}

 

I'm having problems with this. I don't know why, but it just won't work lol.. Is there some kind of syntax wrong or if statement not correct in it?

 

Thanks in advanced!

~Josh`

err0r: 666 + 1337 = 2003 backwards is 3002 which is how many people ozzy has banned from tg
err0r: spooky

on *:notice:*:*:{
 if (AWAY isin $1-) { 
   echo # $nick is now away.
 }
 if (BACK isin $1-) {
   echo # $nick has returned.
 }
 else {
   echo # - $+ $nick $+ - $1-
 }
 haltdef
}

This is correct code

 

on ^*:NOTICE:*:#: {
 if ($1 == AWAY) && (!$2) { echo $chan $nick is away. | halt }
 if ($1 == BACK) && (!$2) { echo $chan $nick  has returned. | halt }
else { echo $chan $nick $1- | halt }
}

Edited Mar 4, 2005 11:28 PM by OZZY_10â„¢

My code does NOT have bugs. It just develops random features.

Thank you Ozzy's works better because of what he said in ChatsUSA lobby.

 

(ozzy10) what happens if someone sends a notice and says "away for now"

(ozzy10) then it will see that as a notice of away

(ozzy10) when its not

(ozzy10) not

 

Just to give some people information on why Ozzy's is better who are having the same problem as me

 

Thanks again guys

 

~Josh`

err0r: 666 + 1337 = 2003 backwards is 3002 which is how many people ozzy has banned from tg
err0r: spooky

Just to give some people information on why Ozzy's is better who are having the same problem as me

oh you are going to puff up his already over inflated ego with that statement.

rofl err0r

err0r: 666 + 1337 = 2003 backwards is 3002 which is how many people ozzy has banned from tg
err0r: spooky

hes only upset cause i am walking mirc help file lol

My code does NOT have bugs. It just develops random features.

I dun get it meh.....

 

btw why not just use RAWS for when they go away?? I beleive my nicklist(IRCx Version Coded 2 Yrs Ago) uses Raws.

 

**Goes and reads his Nicklist Codes**

 

If I find I give

raws for other users away on chatsusa are "on notice" cause thats what the ocx uses

Edited Mar 14, 2005 11:59 AM by OZZY_10â„¢

My code does NOT have bugs. It just develops random features.