diff --git a/src/core/identity.rs b/src/core/identity.rs index dc2da72..e1500eb 100644 --- a/src/core/identity.rs +++ b/src/core/identity.rs @@ -553,7 +553,16 @@ async fn getroles(params : ExecBodyParams) { let arg1 = argv.next(); let targetuser = match arg1 { - None => return, // exit if no arguments + None => { + + botlog::debug( + "Exittingcmd getroles - Invalid arguments ", + Some("identity.rs > init > getroles()".to_string()), + Some(¶ms.msg), + ); + return + + }, // exit if no arguments Some(arg) => arg, };