Remove trailing dots

master
HimbeerserverDE 2021-04-22 17:21:30 +02:00
parent e077b338db
commit a6142d48ef
No known key found for this signature in database
GPG Key ID: 1A651504791E6A8B
1 changed files with 18 additions and 18 deletions

View File

@ -91,7 +91,7 @@ func init() {
c2 := ConnByUsername(name) c2 := ConnByUsername(name)
if c2 == nil { if c2 == nil {
SendChatMsg(c, name+" is not online.") SendChatMsg(c, name+" is not online")
return return
} }
@ -234,7 +234,7 @@ func init() {
allow, err := c.CheckPrivs(reqprivs) allow, err := c.CheckPrivs(reqprivs)
if err != nil { if err != nil {
log.Print(err) log.Print(err)
c.SendChatMsg("An internal error occured while attempting to check your privileges.") c.SendChatMsg("An internal error occured while attempting to check your privileges")
return return
} }
@ -244,7 +244,7 @@ func init() {
} }
go c.Redirect(param) go c.Redirect(param)
c.SendChatMsg("Redirecting you to " + param + ".") c.SendChatMsg("Redirecting you to " + param)
} }
}) })
@ -260,10 +260,10 @@ func init() {
c2 := ConnByUsername(param) c2 := ConnByUsername(param)
if c2 == nil { if c2 == nil {
SendChatMsg(c, param+" is not online.") SendChatMsg(c, param+" is not online")
} else { } else {
srv := c2.ServerName() srv := c2.ServerName()
SendChatMsg(c, param+" is connected to server "+srv+".") SendChatMsg(c, param+" is connected to server "+srv)
} }
}) })
@ -279,7 +279,7 @@ func init() {
c2 := ConnByUsername(param) c2 := ConnByUsername(param)
if c2 == nil { if c2 == nil {
SendChatMsg(c, param+" is not online.") SendChatMsg(c, param+" is not online")
} else { } else {
SendChatMsg(c, param+"'s address is "+c2.Addr().String()) SendChatMsg(c, param+"'s address is "+c2.Addr().String())
} }
@ -317,7 +317,7 @@ func init() {
privs, err := Privs(name) privs, err := Privs(name)
if err != nil { if err != nil {
log.Print(err) log.Print(err)
SendChatMsg(c, "An internal error occured while attempting to get the privileges.") SendChatMsg(c, "An internal error occured while attempting to get the privileges")
return return
} }
@ -350,7 +350,7 @@ func init() {
privs, err := Privs(name) privs, err := Privs(name)
if err != nil { if err != nil {
log.Print(err) log.Print(err)
SendChatMsg(c, "An internal error occured while attempting to get the privileges.") SendChatMsg(c, "An internal error occured while attempting to get the privileges")
return return
} }
@ -362,11 +362,11 @@ func init() {
err = SetPrivs(name, privs) err = SetPrivs(name, privs)
if err != nil { if err != nil {
log.Print(err) log.Print(err)
SendChatMsg(c, "An internal error occured while attempting to set the privileges.") SendChatMsg(c, "An internal error occured while attempting to set the privileges")
return return
} }
SendChatMsg(c, "Privileges updated.") SendChatMsg(c, "Privileges updated")
}) })
RegisterChatCommand("revoke", RegisterChatCommand("revoke",
@ -393,7 +393,7 @@ func init() {
privs, err := Privs(name) privs, err := Privs(name)
if err != nil { if err != nil {
log.Print(err) log.Print(err)
SendChatMsg(c, "An internal error occured while attempting to get the privileges.") SendChatMsg(c, "An internal error occured while attempting to get the privileges")
return return
} }
@ -405,11 +405,11 @@ func init() {
err = SetPrivs(name, privs) err = SetPrivs(name, privs)
if err != nil { if err != nil {
log.Print(err) log.Print(err)
SendChatMsg(c, "An internal error occured while attempting to set the privileges.") SendChatMsg(c, "An internal error occured while attempting to set the privileges")
return return
} }
SendChatMsg(c, "Privileges updated.") SendChatMsg(c, "Privileges updated")
}) })
RegisterChatCommand("banlist", RegisterChatCommand("banlist",
@ -419,7 +419,7 @@ func init() {
func(c *Conn, param string) { func(c *Conn, param string) {
bans, err := BanList() bans, err := BanList()
if err != nil { if err != nil {
SendChatMsg(c, "An internal error occured while attempting to read the ban list.") SendChatMsg(c, "An internal error occured while attempting to read the ban list")
return return
} }
@ -448,7 +448,7 @@ func init() {
c2.CloseWith(AccessDeniedCustomString, r, false) c2.CloseWith(AccessDeniedCustomString, r, false)
SendChatMsg(c, "Kicked "+name) SendChatMsg(c, "Kicked "+name)
} else { } else {
SendChatMsg(c, name+" is not online.") SendChatMsg(c, name+" is not online")
} }
}) })
@ -466,12 +466,12 @@ func init() {
if err != nil { if err != nil {
c2 := ConnByUsername(param) c2 := ConnByUsername(param)
if c2 == nil { if c2 == nil {
SendChatMsg(c, param+" is not online.") SendChatMsg(c, param+" is not online")
return return
} }
if err := c2.Ban(); err != nil { if err := c2.Ban(); err != nil {
SendChatMsg(c, "An internal error occured while attempting to ban the player.") SendChatMsg(c, "An internal error occured while attempting to ban the player")
return return
} }
} }
@ -490,7 +490,7 @@ func init() {
} }
if err := Unban(param); err != nil { if err := Unban(param); err != nil {
SendChatMsg(c, "An internal error occured while attempting to unban the player.") SendChatMsg(c, "An internal error occured while attempting to unban the player")
return return
} }