Created
August 11, 2014 01:03
-
-
Save izabera/d4bde15505a89afad35b to your computer and use it in GitHub Desktop.
kvirc make hl bold
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if input is like "user: message" | |
#and 'user' is a valid nickname in that chan, | |
#make that nickname bold | |
%users[]=$chan.users() | |
%input=$0 | |
%pos=$str.find(%input,":") | |
if(%pos!=-1){ | |
%nick=$str.left(%input,%pos) | |
%message=$str.rightfromfirst(%input,":") | |
for(%i=0;%i<%users[]#;%i++) if(%users[%i]==%nick) %input=$b%nick$b":"%message | |
} | |
say %input | |
halt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment