mIRC Home    About    Download    Register    News    Help

Print Thread
#155999 10/08/06 10:06 PM
Joined: Jun 2004
Posts: 243
G
gomp Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Jun 2004
Posts: 243
Code:
 
on *:connect:{ 
  if ($network == undernet) { joinchans | msg [Email]x@channels.undernet.org[/Email] login Gomp lalla | pa }
} 

I got thet in my alias (in new mIRC), ..

But, when I connect, nothing happens..

Nothing at all.

Is that on *:connect Remote thing, wrong in any ways?

I know no scripting, just by observations,..

And it works on my other mIRC where I use..
Code:
 
on *:connect:{ 
  if ($network == efnet) { join #filosofisk | join #pinehillhaints | join #utvikling | join #sms.no | join #spiritual | join #psychedelics | join #shrooms | join #MENSA | join #buddhism | join #spirituality | join #christian-discussion | join #ugdulf | join #ascension | join #archangels | join #3d_life | join #dreamt  | join #rytmeboksen | join #tao | join #åndelighet | join #christian | join  #Shamanism | join #Gudene | join #Truth | msg dilemma op sdfsdfsdf| msg LinuxHOW op sdffdsfsdf} | if ($network ==  AccessIRC) { server -m irc.homelien.no | msg nickserv identify sdfdfsdfsd| join #br1 | server -m irc.shroomery.org } | if ($network == Paranormal) { join #torget | msg nickserv identify sdfdfsdf} | if ($network ==  ShroomeryIRC) { join #shroomery | msg nickserv identify sdfsdfsdf| msg nickserv identify sdfsdfsf
} } 

sdfsdfsf = is the replaced by given passwords.

I know it is a mess, just like my irc mind is..

That however connects me to the "main mirc" I use..

looking like this:
Picture of working mirc.. ..off that last code..


so please help out. smile

grin

Last edited by gomp; 10/08/06 10:12 PM.

I do not speak English. I speak Norwegian. So please bear with my poor English spelling and grammar.
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
There's nothing wrong with that first on connect script from a structural point of view.

Regarding the 2nd one, while technically nothing wrong, trying to join that many channels using that method might cause the server to give a target change too fast error.

This can be avoided by using a timer to delay the joining of the channels.

I'd also like to point out that most scripters find scripts easier to read if there is a minimum number of pipes | in the code. There are times when these cannot be avoided, however, for your code, it would be a lot easier to read using multiple lines, rather than multiple posts.

Take a look at the following code, then compare it with the second one you posted in this topic and I think you'll see what I mean.
Code:
 on *:connect:{ 
  if ($network == efnet) {
.timer 1 1    join #filosofisk
.timer 1 2    join #pinehillhaints
.timer 1 3    join #utvikling 
.timer 1 4    join #sms.no 
.timer 1 5    join #spiritual 
.timer 1 6    join #psychedelics 
.timer 1 7    join #shrooms 
.timer 1 8    join #MENSA 
.timer 1 9    join #buddhism 
.timer 1 10    join #spirituality 
.timer 1 11    join #christian-discussion 
.timer 1 12    join #ugdulf 
.timer 1 13    join #ascension 
.timer 1 14    join #archangels 
.timer 1 15    join #3d_life 
.timer 1 16    join #dreamt  
.timer 1 17    join #rytmeboksen 
.timer 1 18    join #tao 
.timer 1 19    join #åndelighet 
.timer 1 20    join #christian 
.timer 1 21    join  #Shamanism 
.timer 1 22    join #Gudene 
.timer 1 23    join #Truth 
    msg dilemma op sdfsdfsdf
    msg LinuxHOW op sdffdsfsdf
  }
  if ($network ==  AccessIRC) {
    server -m irc.homelien.no
    msg nickserv identify sdfdfsdfsd
    join #br1 
    server -m irc.shroomery.org 
  }
  if ($network == Paranormal) {
    join #torget
    msg nickserv identify sdfdfsdf
  }
  if ($network ==  ShroomeryIRC) {
    join #shroomery
    msg nickserv identify sdfsdfsdf
    msg nickserv identify sdfsdfsf
  } 
} 
 

While it does take more lines, it won't take any longer to process.

I'd like to point out (in case I haven't done this in one of your other posts) the the Perform option located at mIRC Options - Connect - Options can be made network specific.

Timers added to delay the joining of the channels to prevent flooding.

Last edited by RusselB; 11/08/06 12:37 AM.
Joined: Jun 2004
Posts: 243
G
gomp Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Jun 2004
Posts: 243
I'd like to point out (in case I haven't done this in one of your other posts) the the Perform option located at mIRC Options - Connect - Options can be made network specific.

I know that.. smile


I am testing that setup right now..


how would that timer work?

and how would I get it network spesific?



EDIT

01:53:31 * Quits: curious (Excess Flood)

Now I cannot no longer connect to my main mirc again..

frown

I just get that..


Last edited by gomp; 11/08/06 12:00 AM.

I do not speak English. I speak Norwegian. So please bear with my poor English spelling and grammar.
Joined: Mar 2004
Posts: 210
F
Fjord artisan
Offline
Fjord artisan
F
Joined: Mar 2004
Posts: 210
Quote:
[01:53:31 * Quits: curious (Excess Flood)

Now I cannot no longer connect to my main mirc again..

Your "main mirc"? Wazzat? If you're getting that you're running mIRC. Do you mean you can't connect to the network? Probably because you were banned for joining so many channels at once.

Joined: Jun 2004
Posts: 243
G
gomp Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Jun 2004
Posts: 243
Huh?

I am using mIRC ...

I get that error when connection, cause I do not know how to delay the joining..



Last edited by gomp; 11/08/06 12:22 AM.

I do not speak English. I speak Norwegian. So please bear with my poor English spelling and grammar.
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Try my edited code. A one second delay is usually sufficient.

Joined: Jun 2004
Posts: 243
G
gomp Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Jun 2004
Posts: 243
THank you again. I will test that later on, hopfully after some sleep.

I also got another idea of how to get this automatd.

But I make another thread as it is an other thing that might help me solve this. wink


I do not speak English. I speak Norwegian. So please bear with my poor English spelling and grammar.

Link Copied to Clipboard