mIRC Home    About    Download    Register    News    Help

Print Thread
#108696 21/01/05 08:48 PM
Joined: Aug 2004
Posts: 237
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Aug 2004
Posts: 237
[Friday 21 January 19:49:12] * Joins: LethPhaos (~zethbot@d54C27CC5.access.telenet.be)
[Friday 21 January 19:49:12] * Tig- sets mode: +v LethPhaos
[Friday 21 January 19:49:12] * Quits: LethPhaos (~zethbot@d54C27CC5.access.telenet.be) (Registered)
[Friday 21 January 19:49:12] * Joins: LethPhaos (~zethbot@LethPhaos.users.quakenet.org)
[Friday 21 January 19:49:12] * stockholm.se.quakenet.org sets mode: +v LethPhaos

This is the result of a perform script that sets me user mode +x (this is a quakenet mode).
It makes me rejoin all channels with my hidden uhm < thing that's behind the @ smile >
I want mIRC only to join my favourite join channels from channel list after the usermode is set, so that I'm not joining 2 times each time.
At the moment I created a on connect event with a timer to join all the channels manually. Is there a better way?
Like an on connect event that triggers when my usermode +x is set (maybe with raw?), which is followed by joining all the channels in the favourite list.

I hope I made myself clear smile
Thanks in advance!

#108697 21/01/05 08:56 PM
Joined: Jan 2003
Posts: 39
Q
Ameglian cow
Offline
Ameglian cow
Q
Joined: Jan 2003
Posts: 39
This is what i use, and it should work.

Code:
on 1:START:{ 
  /server us.quakenet.org 
 } 
on *:CONNECT: { 
 if (.quakenet.org isin $server) { 
  /authserv auth user password 
  /mode $me +x 
  /join #channel 
  /join #channel key
} 
 


multi server > http://www.quiglag.com/irc/join.html

#108698 21/01/05 09:54 PM
Joined: Aug 2004
Posts: 237
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Aug 2004
Posts: 237
Your script doesn't wait until the usermode is set by the server, I will still have my problem if the channels are joined fast. Or am I wrong?

#108699 21/01/05 09:58 PM
Joined: Jan 2003
Posts: 39
Q
Ameglian cow
Offline
Ameglian cow
Q
Joined: Jan 2003
Posts: 39
I thought the same thing: but ive never had the problem. Im on gamesurge and it works for me, and ive seem ppl on gamesurge with the same problem. Just give it a test run.

#108700 21/01/05 10:05 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Or use on usermode
  • on *:usermode:if $regex($1-,/\+[^-]*x/) { join #chan.#chan2 }

#108701 21/01/05 10:20 PM
Joined: Aug 2004
Posts: 237
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Aug 2004
Posts: 237
From mIRC help file:
"The on USERMODE event triggers when you change your usermode."
Does this mean when send the change usermode command to server, or when the usermode is set by the server and you get the reply?

#108702 21/01/05 10:39 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
It means when mIRC knows that your usermode has changed, which is when the info is recieved from the server.

#108703 22/01/05 10:06 AM
Joined: May 2004
Posts: 95
W
Babel fish
Offline
Babel fish
W
Joined: May 2004
Posts: 95
you get the fake host when you are auth'd (logged in) with the service, setting umode x without that doesnt do much.
you could react when your host is changed, this is raw 396.
a quick example:
Code:
raw 396:&amp; wiebe.users.quakenet.org is now your hidden host:{
  join #chan1,#chan2,#chan3,...,#chanN
}

I have not tested it, but it should work

#108704 23/01/05 05:10 PM
Joined: Aug 2004
Posts: 237
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Aug 2004
Posts: 237
Thanx, I'm going to use wiebe's solution. Still need to know if I can get the channels in the channel list, and how to join them after that raw.

#108705 23/01/05 09:38 PM
Joined: Aug 2004
Posts: 237
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Aug 2004
Posts: 237
No-one?

#108706 23/01/05 10:18 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Do you mean when you type /list ? confused

#108707 24/01/05 05:10 PM
Joined: Aug 2004
Posts: 237
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Aug 2004
Posts: 237
No, I mean how can I join the channels in my internal mIRC channel list (=favorites). I'm sorry for my bad explanation of what I wanted.

#108708 25/01/05 02:57 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Yeah that raw is better. smile

Code:
raw 396:&amp; [color:red]changeme[/color].users.quakenet.org is now your hidden host:{
  var %i = 0,%a,%b
  while $readini($+(",$mircini,"),chanfolder,n $+ %i) {
    %b = $v1
    if $findtok($v1,$network,34) { %a = $addtok(%a,$gettok($gettok(%b,1,44),2,61),44) }
    inc %i
  }
  join %a
}

#108709 25/01/05 06:13 PM
Joined: Aug 2004
Posts: 237
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Aug 2004
Posts: 237
Thanx

EDIT: It doesn't work

Last edited by LethPhaos; 25/01/05 06:14 PM.

Link Copied to Clipboard