about summary refs log tree commit diff stats
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go11
1 files changed, 10 insertions, 1 deletions
diff --git a/main.go b/main.go
index e312d50..52df14b 100644
--- a/main.go
+++ b/main.go
@@ -151,8 +151,17 @@ func main() {
 			err := who.Run()
 			checkerr(err)
 
+			split := strings.Split(bytestream.String(), " ")
+			var out bytes.Buffer
+			for _, e := range split {
+				if !strings.Contains(e, ":") {
+					out.Write([]byte(e + " "))
+				}
+
+			}
+
 			c.Cmd.Reply(e, "Check your private messages!")
-			c.Cmd.Message(e.Source.Name, bytestream.String())
+			c.Cmd.Message(e.Source.Name, out.String())
 			return
 		}
 		// number of total human users on the server