mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2009
Posts: 7
J
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?

Joined: May 2009
Posts: 7
J
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
J
Joined: May 2009
Posts: 7
ps script is run by @ user.

Joined: Aug 2004
Posts: 7,252
R
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.

Joined: May 2009
Posts: 7
J
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?

Joined: Aug 2004
Posts: 7,252
R
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.

Joined: May 2009
Posts: 7
J
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_*

Joined: Jul 2007
Posts: 1,129
T
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.

Joined: Nov 2006
Posts: 1,559
H
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_*"?

Joined: May 2009
Posts: 7
J
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.

Joined: May 2009
Posts: 7
J
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.

Joined: Jul 2007
Posts: 1,129
T
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.

Joined: May 2009
Posts: 7
J
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.

Joined: Jul 2007
Posts: 1,129
T
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.

Joined: Oct 2007
Posts: 214
B
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.


Link Copied to Clipboard