mIRC Homepage

Quakenet user mode +x

Posted By: LethPhaos

Quakenet user mode +x - 21/01/05 08:48 PM

[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!
Posted By: quiglag

Re: Quakenet user mode +x - 21/01/05 08:56 PM

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
Posted By: LethPhaos

Re: Quakenet user mode +x - 21/01/05 09:54 PM

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?
Posted By: quiglag

Re: Quakenet user mode +x - 21/01/05 09:58 PM

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.
Posted By: Iori

Re: Quakenet user mode +x - 21/01/05 10:05 PM

Or use on usermode
  • on *:usermode:if $regex($1-,/\+[^-]*x/) { join #chan.#chan2 }
Posted By: LethPhaos

Re: Quakenet user mode +x - 21/01/05 10:20 PM

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?
Posted By: Iori

Re: Quakenet user mode +x - 21/01/05 10:39 PM

It means when mIRC knows that your usermode has changed, which is when the info is recieved from the server.
Posted By: wiebe

Re: Quakenet user mode +x - 22/01/05 10:06 AM

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
Posted By: LethPhaos

Re: Quakenet user mode +x - 23/01/05 05:10 PM

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.
Posted By: LethPhaos

Re: Quakenet user mode +x - 23/01/05 09:38 PM

No-one?
Posted By: SladeKraven

Re: Quakenet user mode +x - 23/01/05 10:18 PM

Do you mean when you type /list ? confused
Posted By: LethPhaos

Re: Quakenet user mode +x - 24/01/05 05:10 PM

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.
Posted By: Iori

Re: Quakenet user mode +x - 25/01/05 02:57 PM

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
}
Posted By: LethPhaos

Re: Quakenet user mode +x - 25/01/05 06:13 PM

Thanx

EDIT: It doesn't work
© 2022 mIRC Discussion Forums