on ^*:TEXT:*:#: {
var %n = $nick, %t = $$1-
echo # $timestamp $+(<,%n,>) %t
haltdef
}
on *:INPUT:#: {
haltdef
.msg # %t
var %n = $me, %t = $$1-
if ($left(%t,1) == $chr(47)) {
???????
}
echo # $timestamp $+(<,,%n,,>) %t
}
This code bolds my name on my INPUT's, and leaves the other peoples' the same, but I can change it whenever I want. As you can see in this part of the code...
if ($left(%t,1) == $chr(47)) {
???????
}
I try to check the first character, and it it's a / that starts a command, it does the command like normal. However, I can't get it to do the command alone, and I don't know how. Also, anything else that could make my code better would be appreciated.
Any help?