Ensure login-token is given enough parameters
This commit is contained in:
@@ -75,6 +75,10 @@ var cmdLoginToken = &commands.FullHandler{
|
|||||||
}
|
}
|
||||||
|
|
||||||
func fnLoginToken(ce *WrappedCommandEvent) {
|
func fnLoginToken(ce *WrappedCommandEvent) {
|
||||||
|
if len(ce.Args) == 0 {
|
||||||
|
ce.Reply("**Usage**: `$cmdprefix login-token <token>`")
|
||||||
|
return
|
||||||
|
}
|
||||||
ce.MarkRead()
|
ce.MarkRead()
|
||||||
defer ce.Redact()
|
defer ce.Redact()
|
||||||
if ce.User.IsLoggedIn() {
|
if ce.User.IsLoggedIn() {
|
||||||
|
|||||||
Reference in New Issue
Block a user