mIRC Homepage
Posted By: iamaloser nick completor - 18/10/03 12:22 PM
how can i make a nickcompletor that underlines the first letter of the nickname i type eg: Xc0n hi sends Xc0n: hi
Posted By: Tsunami Re: nick completor - 18/10/03 12:43 PM
Code:
on *:INPUT:#: {
  IF ($1 ison $chan) { HALTDEF | MSG $chan $+(,$left($1,1),,$right($1,$calc($len($1) - 1)),$chr(58)) $2- }
}

ok, I know it looks a bit difficult, but it just puts the first character of the nickname ($left($1,1)) between underline control codes (Ctrl+U), then adds the rest of the nickname ($right($1,$calc($len($1) - 1))), and finally it adds a : ($chr(58)).
Posted By: Iori Re: nick completor - 18/10/03 07:04 PM
Replace: msg $chan $+(,$left($1,1),,$right($1,$calc($len($1) - 1)),$chr(58)) $2-
With:     msg $chan $+(,$left($1,1),,$mid($1,2),:) $2-
smile
Posted By: pheonix Re: nick completor - 20/10/03 05:51 PM
$right($1,-1)
$mid($1,2)
many many ways to remove the 1st letter of a nick :tongue:
Posted By: KingTomato Re: nick completor - 20/10/03 08:34 PM
You're right, but Iori's is more practical because if a user has a single character for a name, the script won't go "fubar" for a lack of better terms. It will remain uniform with the other posts.
Posted By: Iori Re: nick completor - 21/10/03 07:03 AM
You're right. but changing $right() to $mid() was not all I suggested be changed, or I wouldn't have bothered.
© mIRC Discussion Forums