mIRC Home    About    Download    Register    News    Help

Print Thread
AutoVoice script that ignores guests #212589 28/05/09 02:16 AM
Joined: May 2009
Posts: 7
J
JimmyJames Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
J
Joined: May 2009
Posts: 7
This is what I am using but it does not work

on *:JOIN:#channel: {
if ($me isop $chan) {!mode $chan +v $nick}
if (Guest_* iswm $nick) {!mode $chan -v $nick}
}

I replace channel etc with the correct names in the actual remote.

The above version was my last attempt which was to autovoice everyone and then devoice guests even this icky idea didn't work.

Is this possible?

Re: AutoVoice script that ignores guests [Re: JimmyJames] #212590 28/05/09 02:17 AM
Joined: May 2009
Posts: 7
J
JimmyJames Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
J
Joined: May 2009
Posts: 7
ps script is run by @ user.

Re: AutoVoice script that ignores guests [Re: JimmyJames] #212594 28/05/09 02:34 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Remove the ! from !mode

After re-reading your script, here's an alternative you might try
Code:
on @*:join:#:{
  if (Guest* !iswm $nick) { .mode $chan +v $nick }
}

Your original code would voice everyone, then remove the voice if the nick started with Guest.
The code I've provided will check if the person's nick starts with Guest, and only voice them if it does not.

Re: AutoVoice script that ignores guests [Re: RusselB] #212595 28/05/09 02:37 AM
Joined: May 2009
Posts: 7
J
JimmyJames Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
J
Joined: May 2009
Posts: 7
it works with +v so are you sure that would help?

Re: AutoVoice script that ignores guests [Re: JimmyJames] #212596 28/05/09 02:40 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Using the +v requires the interaction of another script.
Changing !mode to mode or /mode will eliminate the need for that extra script.

Re: AutoVoice script that ignores guests [Re: RusselB] #212598 28/05/09 02:47 AM
Joined: May 2009
Posts: 7
J
JimmyJames Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
J
Joined: May 2009
Posts: 7
That didn't do it unfortunatly. Would I have to escape out an _

ie Guest_*

Re: AutoVoice script that ignores guests [Re: JimmyJames] #212600 28/05/09 03:35 AM
Joined: Jul 2007
Posts: 1,129
T
Tomao Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Try this:
Code:
on @*:JOIN:#:if (!$regex($nick,/^(Guest\x5F|Guest)/i)) mode # +v $nick
This code will check and match the beginning of Guest or Guest_ and then ignores it.

Re: AutoVoice script that ignores guests [Re: RusselB] #212604 28/05/09 03:51 AM
Joined: Nov 2006
Posts: 1,559
H
Horstl Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
If a command starts with an exclamation mark mIRC will use the "default" command, regardless of any custom alias of the same name.
Apart from that your code should work fine - maybe the OP didn't remove his original code from the file?

@Tomao: If you exclude "Guest*", why additionally check "Guest_*"?

Re: AutoVoice script that ignores guests [Re: Horstl] #212605 28/05/09 04:05 AM
Joined: May 2009
Posts: 7
J
JimmyJames Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
J
Joined: May 2009
Posts: 7
I'll try that and it was always guest_ thought that might be the problem after I just said guest* so I wanted to make sure those helping had the correct info in case that might have been the problem.

Re: AutoVoice script that ignores guests [Re: JimmyJames] #212606 28/05/09 04:08 AM
Joined: May 2009
Posts: 7
J
JimmyJames Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
J
Joined: May 2009
Posts: 7
Still not working. frown Thanks for all your help. I guess it can't be done?

PS I am the op and I made sure to completely unload original script before trying these suggestions.

Re: AutoVoice script that ignores guests [Re: JimmyJames] #212607 28/05/09 06:28 AM
Joined: Jul 2007
Posts: 1,129
T
Tomao Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
@Horstl, 'cause in Jimmy's case, it's rather strange that the scripts shown here are not working for him...eek Also he claims that he's overwritten the original script before trying the new ones....so what do you suppose the odds are?
@Jimmy, could your remote possibly be turned off that you're not aware of? To turn it on, enter: /remote on
After it's turned on, try those suggestions again.
Originally Posted By: JimmyJames
ps script is run by @ user.
Tell that user to make sure his or her remote is on.

Re: AutoVoice script that ignores guests [Re: Tomao] #212656 29/05/09 06:07 PM
Joined: May 2009
Posts: 7
J
JimmyJames Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
J
Joined: May 2009
Posts: 7
Remote is definetly on as the script is aving people and other scripts are working.

To be sure I added a message to the script on join as well and it was doing that.

Re: AutoVoice script that ignores guests [Re: JimmyJames] #212659 29/05/09 07:48 PM
Joined: Jul 2007
Posts: 1,129
T
Tomao Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
I haven't a clue why these suggestions won't work for you. This one based on RusselB's works perfectly for me to ignore guests:
Code:
on @*:JOIN:#:if (Guest* !iswm $nick) .mode $chan +v $v2
Make sure your bot or the person who installs this script must be opped.

Re: AutoVoice script that ignores guests [Re: Tomao] #213127 18/06/09 06:04 PM
Joined: Oct 2007
Posts: 214
B
Buggs2008 Offline
Fjord artisan
Offline
Fjord artisan
B
Joined: Oct 2007
Posts: 214
This ones particularly easy because he must be using it for an IRCX Service where the Guest_ is defined in mIRC as a ">". In a typical webchat envrionment ">" is typically replaced so that the nickname reads Guest_Nickname, so that being said, here is the newly modified code below:

Code:
 on @*:JOIN:#: {

 if (*>* !iswm $nick) { mode # +v $v2 }

 } 
 


Hoped this answered your question.