aboutsummaryrefslogtreecommitdiff
path: root/chatcommands.go
diff options
context:
space:
mode:
Diffstat (limited to 'chatcommands.go')
-rw-r--r--chatcommands.go20
1 files changed, 0 insertions, 20 deletions
diff --git a/chatcommands.go b/chatcommands.go
index 793a8a3..6977846 100644
--- a/chatcommands.go
+++ b/chatcommands.go
@@ -245,10 +245,6 @@ func init() {
return "Group: " + grp
}
- if cc == nil {
- return "Telnet usage: group <name>"
- }
-
grp, ok := proxy.Conf().UserGroups[cc.Name()]
if !ok {
grp = "default"
@@ -276,10 +272,6 @@ func init() {
return "Player permissions: " + strings.Join(clt.Perms(), ", ")
}
- if cc == nil {
- return "Telnet usage: perms <name>"
- }
-
return "Your permissions: " + strings.Join(cc.Perms(), ", ")
},
})
@@ -301,10 +293,6 @@ func init() {
return "Group permissions: " + strings.Join(perms, ", ")
}
- if cc == nil {
- return "Telnet usage: gperms <group>"
- }
-
grp, ok := proxy.Conf().UserGroups[cc.Name()]
if !ok {
grp = "default"
@@ -330,17 +318,9 @@ func init() {
srvs = append(srvs, name)
}
- if cc == nil {
- return "Servers: " + strings.Join(srvs, ", ")
- }
-
return fmt.Sprintf("Connected to: %s | Servers: %s", cc.ServerName(), strings.Join(srvs, ", "))
}
- if cc == nil {
- return "Telnet usage: server"
- }
-
if cc.ServerName() == args[0] {
return "Already connected to this server."
}