mIRC Home    About    Download    Register    News    Help

Print Thread
noob needs help #180280 07/07/07 03:29 AM
Joined: Jul 2007
Posts: 1,129
T
Tomao Offline OP
Hoopy frood
OP Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Did I do something wrong with this code, because it won't work:

on ^*:JOIN:#:{ if ($nick == $me) && (myhouse isin $chan) .raw away $chan }

please help me make it right..ty

Re: noob needs help [Re: Tomao] #180283 07/07/07 03:51 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Personally, I don't like using raw commands when not necessary.

You might try this
Code:
on me:*:join:#:{
  if myhouse isin $chan {
    away $chan
  }
}


I don't understand why you're putting the channel name into the away message, unless that isn't what you intended.
If that's not what you intended, the I might be of more help if you tell me what your intentions were/are.

A couple of side notes:
1) When posting code, please use the Code Tags button, which looks like #

2) As this is a script, and you were aware that it was a script before you posted, then you should've posted in the Scripts & Pop-ups section.