mIRC Home    About    Download    Register    News    Help

Print Thread
#266700 15/01/20 03:46 PM
Joined: Jan 2020
Posts: 4
S
Self-satisified door
OP Offline
Self-satisified door
S
Joined: Jan 2020
Posts: 4
Hi, I use this popup when i do support for a site:
.Help Start:/msg # Hello $1 $+ , Welcome to #helpchan im here to help. Please state your site username unless it matches your nick. then inform me about the reason for your visit to #helpchan. | /msg #staff !u $1

The thing is that when a user joins, witch name starts with "mib" i dont want the popup to do the "/msg #staff !u $1" part of the script.

Is that something someone here can help me with?

Starsplash #266701 15/01/20 06:21 PM
Joined: Jan 2004
Posts: 2,127
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
I assume by 'name' you mean the nick, and not the 'realname' that shows when you do a /whois on them.

replace the part following the pipe symbol with:

Code
if (mib* !iswm $nick) /msg #staff !u $1

Last edited by maroon; 15/01/20 06:21 PM.
maroon #266702 15/01/20 06:35 PM
Joined: Jan 2020
Posts: 4
S
Self-satisified door
OP Offline
Self-satisified door
S
Joined: Jan 2020
Posts: 4
Thanks a bunch. that helps me alot smile
(if it works) smile

maroon #266703 15/01/20 06:56 PM
Joined: Jan 2020
Posts: 4
S
Self-satisified door
OP Offline
Self-satisified door
S
Joined: Jan 2020
Posts: 4
So the script still sends the !u if the users name start with mib
it also sends the !u nick if it does not start with mib

Code
if (mib* !iswm $nick) /msg #staff !u $1


Last edited by Starsplash; 15/01/20 06:57 PM.
Starsplash #266704 15/01/20 07:19 PM
Joined: Jan 2020
Posts: 4
S
Self-satisified door
OP Offline
Self-satisified door
S
Joined: Jan 2020
Posts: 4
made it work like this : if ( $left($1,4) != mib_ ) { /msg #staff !u $1 }


Link Copied to Clipboard