Skip to content
Snippets Groups Projects
Commit 85df3558 authored by deuce's avatar deuce
Browse files

Commit crufty bits I've had laying around for at least XXX days.

Appears to do something about prefix lengths greater than 1.
parent df8be9d7
No related branches found
No related tags found
No related merge requests found
......@@ -259,7 +259,8 @@ function get_command_channel(srv,cmd) {
}
function parse_cmd_prefix(cmd) {
cmd[1] = cmd[1].substr(1).toUpperCase();
var pre=get_cmd_prefix();
cmd[1] = cmd[1].substr(pre.length).toUpperCase();
if ((cmd[1] == truncsp(get_cmd_prefix()))
&& cmd[2]) {
cmd.shift();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment