mIRC Home    About    Download    Register    News    Help

Print Thread
#257489 14/04/16 08:47 PM
J
James
James
J
hey there for a channel message if a nick joins example Johnny-Mobile and i only want the message to display the nickname as Johnny what do i add to $nick so it ignores the -Mobile in the message

on @!*:join:#: {
if ($regex($nick,/^(.+?)-Mobile$/)) && ($nick($chan,$regml(1),ov)) { msg #botsville Mobile Nick Check Complete... Main Nickname $nick (without the -Mobile) Is Connected And Serving...Now Voicing $nick (With the -Mobile) | timermvoice11 1 5 mode $chan +v $nick } }

Last edited by James; 14/04/16 08:48 PM.
#257522 18/04/16 12:47 AM
J
JB_uk
JB_uk
J
You may find this useful.
/help $remove

Have a look at that and let me know how you get on.

#257575 22/04/16 09:46 PM
Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
$regml(1)


Link Copied to Clipboard