From 3970a35cd0bd0e13d671b995b0774f2e78c839cc Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Tue, 20 Oct 2020 09:29:02 +0200 Subject: [PATCH] Fixed command check Added missing enums --- source/dnetd/dconnection.d | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/source/dnetd/dconnection.d b/source/dnetd/dconnection.d index df83fc2..0399601 100644 --- a/source/dnetd/dconnection.d +++ b/source/dnetd/dconnection.d @@ -48,6 +48,15 @@ public class DConnection : Thread STATUS, CHAN_PROP, SET_PROP, + + + /* User property commands */ + GET_USER_PROPS, + GET_USER_PROP, + SET_USER_PROP, + DELETE_USER_PROP, + + UNKNOWN } @@ -701,7 +710,7 @@ public class DConnection : Thread } } /* If `set_user_prop` (requires: authed, client) */ - else if(command == Command.GET_USER_PROP && hasAuthed && connType == ConnectionType.CLIENT) + else if(command == Command.SET_USER_PROP && hasAuthed && connType == ConnectionType.CLIENT) { }