mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2007
Posts: 9
W
WoWoWee Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
W
Joined: Feb 2007
Posts: 9
on *:TEXT:*DEAF*:{
if ( $1 == . ) {
if ( $2 == +d ) { if ($chr(35) isin $strip($3-)) { .mode $me +d } | else { .mode $me +d } }
if ( $2 == -d ) { if ($chr(35) isin $strip($3-)) { .mode $me -d } | else { .mode $me -d } }
}

-------------------
want i wanna do is if i type .+d it will do this /mode mynick +d
or .-d it will do /mode mynick -d thanx in advance

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
If this is for your own client, then you can't use the ON TEXT event.

The following should work, but as the networks that I'm currently on don't have +d for a deaf mode, I'm unable to test.

Code:
on *:input:*:{
  if $istok(.+d .-d,$1,32) {
    .mode $me $right($1,2)
  }
} 


Joined: Feb 2007
Posts: 9
W
WoWoWee Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
W
Joined: Feb 2007
Posts: 9
yes in undernet we can use the deaf mode..
but the codes u gave me didnt work... thanx! frown

Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
Did you put it on a new remote file? Also, maybe your remotes are not enabled. Type '/remote on' to enable.


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
Joined: Feb 2007
Posts: 9
W
WoWoWee Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
W
Joined: Feb 2007
Posts: 9
Originally Posted By: xDaeMoN
Did you put it on a new remote file? Also, maybe your remotes are not enabled. Type '/remote on' to enable.


it is on

Joined: Feb 2007
Posts: 9
W
WoWoWee Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
W
Joined: Feb 2007
Posts: 9
Originally Posted By: xDaeMoN
Did you put it on a new remote file? Also, maybe your remotes are not enabled. Type '/remote on' to enable.


Ok now its working.. I did put a new remote file, thanx a lot!!!!!!!


Link Copied to Clipboard