Skip to content

Commit

Permalink
Merge pull request #992 from osm/pass-server-defined-aliases-to-cbufsvc
Browse files Browse the repository at this point in the history
Only pass server defined aliases through cbuf_svc
  • Loading branch information
tcsabina authored Jan 12, 2025
2 parents 00c18ad + 3792215 commit 6173de7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1964,8 +1964,9 @@ static void Cmd_ExecuteStringEx (cbuf_t *context, char *text)

if (cbuf_current == &cbuf_svc)
{
Cbuf_AddTextEx (&cbuf_svc, p);
Cbuf_AddTextEx (&cbuf_svc, "\n");
inserttarget = is_server_alias ? &cbuf_svc : &cbuf_main;
Cbuf_AddTextEx (inserttarget, p);
Cbuf_AddTextEx (inserttarget, "\n");
} else
{
if (is_server_alias)
Expand Down

0 comments on commit 6173de7

Please sign in to comment.