mIRC Home    About    Download    Register    News    Help

Print Thread
#147217 16/04/06 08:51 AM
Joined: Mar 2006
Posts: 11
K
kein Offline OP
Pikka bird
OP Offline
Pikka bird
K
Joined: Mar 2006
Posts: 11
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: 105
D
Vogon poet
Offline
Vogon poet
D
Joined: Nov 2005
Posts: 105
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
Vogon poet
Offline
Vogon poet
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.

If you mess with the best, u will die like the rest !
#147220 16/04/06 08:10 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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
Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
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,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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
Joined: Mar 2006
Posts: 11
K
kein Offline OP
Pikka bird
OP Offline
Pikka bird
K
Joined: Mar 2006
Posts: 11
Thanks! grin

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


If you mess with the best, u will die like the rest !
#147225 17/04/06 04:23 PM
Joined: Feb 2005
Posts: 681
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
Quote:
on !*:join:#: haltdef


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


Link Copied to Clipboard