mIRC Homepage

on join whois line

Posted By: fast68

on join whois line - 07/12/05 01:21 AM

i have this line in my remotes

1:JOIN:#:/whois $nick

its works fine but
the problem with it is that it whoises me too

how do i make it not whois me

if nick=me halt

something something

thanks for anything
Posted By: SladeKraven

Re: on join whois line - 07/12/05 01:25 AM

On !*:Join:#: whois $nick

The ! section in events means the event wont trigger on you, hope this helps. smile

-Andy
Posted By: genius_at_work

Re: on join whois line - 07/12/05 01:25 AM

haha.. im too slow.
Posted By: fast68

Re: on join whois line - 07/12/05 01:26 AM

interesting

its that simple?

where canu read up on this ! vs. 1 and what its called ?



thanks
Posted By: RusselB

Re: on join whois line - 07/12/05 01:41 AM

/help Access Levels
Posted By: genius_at_work

Re: on join whois line - 07/12/05 04:52 AM

If you are on multiple channels, and the same user joins several of them, your script will whois them for each channel they join. Some servers may consider many whois's on the same person in a short time to be a flood. To prevent flooding like that, you can use a script like this:

Code:
on *:CONNECT: unset %wdelay.*
on *:JOIN:#:{
  if ($($+(%,wdelay.,$cid,.,$nick),2) != 1) {
    set -u10 $+(%,wdelay.,$cid,.,$nick) 1
    whois $nick $nick
  }
}


This code will delay whois'ing the same person for 10 seconds.

-genius_at_work
Posted By: fast68

Re: on join whois line - 07/12/05 03:08 PM

ok there is a problem

changing 1 to ! does not work

now the line is dead it does not whois anyone ever

i didnt think it would so easy..


i was wondering about that

im telling you i have to leave it as 1 or * and have to add a line about if nick= me then halting,

or it wont work

thanks for anything further
Posted By: fast68

Re: on join whois line - 07/12/05 03:09 PM

Quote:
If you are on multiple channels, and the same user joins several of them, your script will whois them for each channel they join. Some servers may consider many whois's on the same person in a short time to be a flood. To prevent flooding like that, you can use a script like this:

Code:
on *:CONNECT: unset %wdelay.*
on *:JOIN:#:{
  if ($($+(%,wdelay.,$cid,.,$nick),2) != 1) {
    set -u10 $+(%,wdelay.,$cid,.,$nick) 1
    whois $nick $nick
  }
}


This code will delay whois'ing the same person for 10 seconds.

-genius_at_work



ok where do i add this one at in there
?

as a stand alone ?

or ?

when i copy and paste that into my remotes it pastes it as one single line all the way across the box

is this good or bad ?

or do i need to break it up into 7 lines like you are showing?

thanks
Posted By: MikeChat

Re: on join whois line - 07/12/05 05:10 PM

Quote:
ok there is a problem
changing 1 to ! does not work


He said !* not just !
you are right changing 1 to ! wont work, try
on !*:JOIN:#: { whois $nick }

also look into what 'g@w' was showing you
Posted By: MikeChat

Re: on join whois line - 07/12/05 05:18 PM

Code:
on *:CONNECT: unset %wdelay.*
on !*:JOIN:#:{
  if ($($+(%,wdelay.,$cid,.,$nick),2) != 1) {
    set -u10 $+(%,wdelay.,$cid,.,$nick) 1
    whois $nick $nick
  }
}

You mentioned it was "all in one line"
in this case no that is not good
repair it or retype it to look like the above copy.
Some browsers read the code copied from this msg board "wrong"
One solution I have seen mentioned is to copy from here, paste into word (wordpad?) clean it up and copy/paste into mIRC's editor from there.
Otherwise pates into the mIRC editor and sort it out manually there.
I guess it would depend on how much code is being pasted as to which way would be better.
I myself am lucky and don't seem to suffer this problem.
Posted By: RusselB

Re: on join whois line - 08/12/05 01:25 AM

There's another post on this site, regarding the problems with taking code from the site and using it in mIRC. One of the options in that post, and the one that I use, is this link <a href="javascript:(function(){var%20c=document.all.tags('pre');for(var%20i=0;i<c.length;i++)with(c(i))void(outerHTML=outerHTML.replace(/\x3CBR\x3E/g,%20'\n'));try{void(document.styleSheets(0).addRule('PRE','color:darkviolet'))}catch(e){}})()" target="_blank">Fix Code Tags</a>

If you save that link to your favorites in your browser, then when you see code in the forum that you want, click that favorite, before copy & pasting the code. Please note that the code must be surrounded with Code tags to work.
Posted By: Mike2005

Re: on join whois line - 08/12/05 09:10 PM

Firefox seems to copy it fine.. Firefox is an awesome web browser, i highly recommend it... http://getfirefox.com
© 2019 mIRC Discussion Forums