mIRC Home    About    Download    Register    News    Help

Print Thread
Mobile Nick #257489 14/04/16 08:47 PM
Joined: Dec 2013
Posts: 14
J
James Offline OP
Pikka bird
OP Offline
Pikka bird
J
Joined: Dec 2013
Posts: 14
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.
Re: Mobile Nick [Re: James] #257522 18/04/16 12:47 AM
Joined: Oct 2014
Posts: 49
JB_uk Offline
Ameglian cow
Offline
Ameglian cow
Joined: Oct 2014
Posts: 49
You may find this useful.
/help $remove

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

Re: Mobile Nick [Re: James] #257575 22/04/16 09:46 PM
Joined: Sep 2005
Posts: 2,881
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
$regml(1)