mIRC Home    About    Download    Register    News    Help

Print Thread
#2129 17/12/02 03:31 AM
Joined: Dec 2002
Posts: 1
D
Mostly harmless
OP Offline
Mostly harmless
D
Joined: Dec 2002
Posts: 1
I remember when i used this a while ago there was a way that when you connected it would automatically set you to a channel (it was in the remote section i believe) but i forgot how............anyone tell me how?

#2130 17/12/02 06:19 AM
Joined: Dec 2002
Posts: 75
wyx Offline
Babel fish
Offline
Babel fish
Joined: Dec 2002
Posts: 75
Code:
 
on *:Connect:{
/join #chan1 
/mode #chan1 +nt
/join #chan2
/mode #chan2 +nt
}


u can used until you got max chann
after #chan u can add key chan


-= Win 95 Virusses =-
-= Try To Infecting Virus =-
#2131 17/12/02 06:22 AM
Joined: Dec 2002
Posts: 144
D
Vogon poet
Offline
Vogon poet
D
Joined: Dec 2002
Posts: 144
You can do this in quite a few ways.

1) mIRC provides an internal function for this. Click on the third button on the toolbar from the left. It's called the Channel Folder. Select or Add a channel of your choice and then click on "Edit". There's a checkbox at the bottom called "Join channel on connect".

2) You can use mIRC's Perform on Connection option to do this. Press Alt + O (or go into the FILE menu and chose OPTIONS). Under the CONNECT tree, there's a menu called PERFORM. Click on it. Check the box called "Enable Perform on Connect" and enter "/join #whateverchannelyouwant" into the big editbox.

3) You can add a line into remotes. To reach remotes, press Alt + R (or go into the TOOLS menu and pick REMOTE). Enter the following: On *:CONNECT: join #whateverchannelnamehere. Click on OK to close the Remote window. Type /remote on in the command line of the Status window or any other window.

You're all set. smile


"Any sufficiently advanced technology is indistinguishable from magic." - Arthur C. Clarke
#2132 17/12/02 07:40 PM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
As Dana pointed out, the Channels List folder is handier for auto-joining channels because it can be made network-dependent.
  1. Click Channels Folder button (3rd from the left on the toolbar).
  2. Click the Add button.
  3. Channel: Type in the name of the channel you want to add.
  4. Password: Put in the password (channel key) if there is one and you know it.
  5. Description: This field is just a note for you to see when you open your channels list folder to remind you about that channel (i.e., Dana's channel).
  6. Networks: Pick which networks you want to join that channel on. Suppose you wanted to join #MyChannel only on DALnet, EFnet and undernet. Click the Add button below Networks and select DALnet; click it again to add EFnet and finally again to select undernet. Now it will only auto-join those channels if you are connecting to one of those networks.
  7. [ ] Join channel on connect Check this to make mIRC auto-join those channels
  8. [ ] Minimize on join This prevents all kinds of windows opening right up (annoying indeed if you auto-tile, as I do).
  9. Click OK to save your changes and you're done. The next time you connect to one of those networks (only), you will auto-join #MyChannel.
As for auto-setting modes, please review the script samples below.
Code:

; [ Original script - modified ]
;
on *:Connect:{
  ;
  ; Join multiple channels in a single JOIN command
  ;
  join #chan1,#chan2
  ;
  ; These two mode commands have to be moved to either on JOIN or on OP because you will not even be in the channel(s)
  ; yet, much less opped. If you're not on and opped in #chan1, you can't set any modes for #chan1. (Commented out)
  ; See the script at the bottom of the post for a fuller description.
  ;
  ;   mode #chan1 +nt
  ;   mode #chan2 +nt
}
;
; When someone ops me on #MyChannel
;
on *:OP:#MyChannel: if (s !isin $chan($chan).mode) mode $chan +s
;
; When I join the channel first (creating the channel), mIRC doesn't know that you're opped in #MyChannel until after the JOIN
; is complete (which occurs AFTER on JOINs have all been parsed and processed). Thus, you need a timer (1 millisecond
; will do just fine) to check after the JOIN to see if you're opped or not (meaning you created the channel).
;
on me:*:JOIN:#MyChannel: .timer -m 1 1 _mode $chan +skl keyword 5
;
; _mode is only used inside this script (alias -l); it's for the timer's use.
;
alias -l _mode if ($me isop $1) mode $1 $2-


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C

Link Copied to Clipboard