mIRC Home    About    Download    Register    News    Help

Print Thread
#147217 16/04/06 08:51 AM
K
kein
kein
K
Code:

on ^*:join:#: {
  if ($nick == $me) && (# == test) { .msg # !op }
  Else { halt }
} 

  


I need codes that when i join #test its automatically msg !op and halt ppl on join. Thats mean i cant see em join the chan.

#147218 16/04/06 01:08 PM
Joined: Nov 2005
Posts: 104
D
Vogon poet
Offline
Vogon poet
D
Joined: Nov 2005
Posts: 104
Use the following code. Just edit the #Channel name.
[code]
on ^*:JOIN:#Test:{
if ($nick == $me) { .msg $chan !op }
else { haltdef }
}
[code]

#147219 16/04/06 08:03 PM
Joined: Oct 2005
Posts: 126
P
Vogon poet
Offline
Vogon poet
P
Joined: Oct 2005
Posts: 126
Same as DRC's... Just a little bit shorter, also edit channel name wink
Code:
on *:JOIN:#test: {
 if ($nick != $me) { .msg # !op }
}

Last edited by PhyxiuS; 16/04/06 08:06 PM.
#147220 16/04/06 08:10 PM
Joined: Aug 2004
Posts: 7,168
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,168
Sorry Phyxius, but your code actually works backwards to what was requested.

The request was for !op to be sent to the channel when they joined, but nothing to display when someone else joined.

Code:
 on me:*:join:#: .msg # !op 
is a shorter way of doing the original request.

#147221 16/04/06 11:09 PM
S
schaefer31
schaefer31
S
The me prefix doesn't halt the join message of other users. drc4's code is the only correct one here.

#147222 16/04/06 11:49 PM
Joined: Aug 2004
Posts: 7,168
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,168
Weird...part of the code I wrote didn't take the first time.
Code:
 on me:*:join:#: .msg # !op
on !*:join:#: haltdef
 

#147223 17/04/06 01:51 AM
K
kein
kein
K
Thanks! grin

#147224 17/04/06 08:49 AM
Joined: Oct 2005
Posts: 126
P
Vogon poet
Offline
Vogon poet
P
Joined: Oct 2005
Posts: 126
smile

#147225 17/04/06 04:23 PM
M
mIRCManiac
mIRCManiac
M
Quote:
on !*:join:#: haltdef


options (alt+o) > irc > events button > for Joins select 'Hide'


Link Copied to Clipboard