mIRC Home    About    Download    Register    News    Help

Print Thread
How u catch ctcp #87504 19/06/04 09:51 AM
Joined: Jun 2003
Posts: 68
D
Dr4g0n Offline OP
Babel fish
OP Offline
Babel fish
D
Joined: Jun 2003
Posts: 68
on *:Ctcp:*:{
if ($1 == 'opme') {
if ($me isin $2) { mode $2 +o $nick }
else { msg $nick im not in that channel }
}
if ($1 == ....................
.....

like this doenst work? frown

Last edited by Dr4g0n; 19/06/04 09:51 AM.
Re: How u catch ctcp #87505 19/06/04 10:21 AM
Joined: Dec 2002
Posts: 191
N
Nobodi Offline
Vogon poet
Offline
Vogon poet
N
Joined: Dec 2002
Posts: 191
/help ctcp events

Re: How u catch ctcp #87506 19/06/04 10:22 AM
Joined: Feb 2003
Posts: 67
N
Naz Offline
Babel fish
Offline
Babel fish
N
Joined: Feb 2003
Posts: 67
Don't use "on" for ctcp events.

ctcp 1:help:*:/msg $nick help yourself!

The above is out of the mirc help.


Those who live by the sword get shot by those who don't.
Re: How u catch ctcp #87507 19/06/04 12:52 PM
Joined: Apr 2003
Posts: 701
K
Kelder Offline
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
if ($me ison $2) { mode $2 +o $nick }

I guess it's a typo, but the isin operator only checks if the first string is embedded in the second string
Maybe it's even better to use isop, so that you won't try to op people when you can't