|
@@ -10112,7 +10112,7 @@ int buildin_atcommand(struct script_state *st)
|
|
|
if (sd){
|
|
|
if(cmd[0] != '@'){
|
|
|
cmd += strlen(sd->status.name);
|
|
|
- while(*cmd != '@' && cmd != 0)
|
|
|
+ while(*cmd != '@' && *cmd != 0)
|
|
|
cmd++;
|
|
|
}
|
|
|
atcommand_sub(sd->fd, sd, cmd, 99);
|
|
@@ -10128,7 +10128,7 @@ int buildin_atcommand(struct script_state *st)
|
|
|
}
|
|
|
if(cmd[0] != '@'){
|
|
|
cmd += strlen(dummy_sd.status.name);
|
|
|
- while(*cmd != '@' && cmd != 0)
|
|
|
+ while(*cmd != '@' && *cmd != 0)
|
|
|
cmd++;
|
|
|
}
|
|
|
atcommand_sub(0, &dummy_sd, cmd, 99);
|
|
@@ -10150,7 +10150,7 @@ int buildin_charcommand(struct script_state *st)
|
|
|
if (sd){
|
|
|
if(cmd[0] != '#'){
|
|
|
cmd += strlen(sd->status.name);
|
|
|
- while(*cmd != '#' && cmd != 0)
|
|
|
+ while(*cmd != '#' && *cmd != 0)
|
|
|
cmd++;
|
|
|
}
|
|
|
charcommand_sub(sd->fd, sd, cmd,99);
|
|
@@ -10166,7 +10166,7 @@ int buildin_charcommand(struct script_state *st)
|
|
|
}
|
|
|
if(cmd[0] != '#'){
|
|
|
cmd += strlen(dummy_sd.status.name);
|
|
|
- while(*cmd != '#' && cmd != 0)
|
|
|
+ while(*cmd != '#' && *cmd != 0)
|
|
|
cmd++;
|
|
|
}
|
|
|
charcommand_sub(0, &dummy_sd, cmd, 99);
|