Snippets Project Page
Author: entropy
Added: 5y
Updated: 5y
mIRC: 7.52+
Hits: 870
Downloads: 14
Review: entropy
Size: 478B
1 0
Login to vote.
Uppercase First Char
v1.3
This snippet upper cases the first left most letter of string.
Download
JSON
▲ Review
▼ Source
; Uppercase First Char v1.3 - by entropy 2018 ; Changes the first left char of each sentence to uppercase, and the rest to lowercase ; Syntax: $ucfirst(string) ; Similar to the PHP function. alias ucfirst { if (!$isid) { return } var %t = $1- %c = $upper($left(%t,1)) %d = $lower($mid(%t,2)) return %c $+ %d } ; Using this on input: on *:input:#,?:{ if ($server && /* !iswm $1) { msg $active $ucfirst($1-) | halt } }
Changelog:
0
0