Xchat::hook_command("", sub { if ($_[1][0] =~ m/^;(.*)/) { Xchat::command("me $1"); return Xchat::EAT_XCHAT; } });