aboutsummaryrefslogtreecommitdiff
path: root/src/portalisg.c
diff options
context:
space:
mode:
authorGravatar Michael Smith <mikesmiffy128@gmail.com> 2025-08-02 16:15:15 +0100
committerGravatar Michael Smith <mikesmiffy128@gmail.com> 2025-08-02 20:43:12 +0100
commit3cce0e5621dc118b32c4143b42ced51c5328f7c7 (patch)
treee1f6fe636818999b72fe6913c8ec50fdff7583a1 /src/portalisg.c
parent0d905d7998a031c2d7a1cdc5d0d1148b55b610a2 (diff)
downloadsst-3cce0e5621dc118b32c4143b42ced51c5328f7c7.tar.gz
sst-3cce0e5621dc118b32c4143b42ced51c5328f7c7.zip
Add an abstraction for hooking v1 and v2 commands
This is a step towards making command hooks work in OE, once OE is supported. Not the most ideal or efficient thing in the world, but it works okay until we come up with something better, I suppose. Not a fan of the argv copying but avoiding that would make the API a lot less ergonomic. Not the easiest problem to solve, really...
Diffstat (limited to 'src/portalisg.c')
-rw-r--r--src/portalisg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/portalisg.c b/src/portalisg.c
index b9a85d9..bdc007f 100644
--- a/src/portalisg.c
+++ b/src/portalisg.c
@@ -36,6 +36,7 @@ static con_cmdcbv2 disconnect_cb;
DEF_FEAT_CCMD_HERE(sst_portal_resetisg,
"Remove \"ISG\" state and disconnect from the server", 0) {
+ // TODO(compat): OE? guess it might work by accident due to cdecl, find out
disconnect_cb(&(struct con_cmdargs){0});
*isg_flag = false;
}