summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.go b/main.go
index c9ce13f..6e0ca34 100644
--- a/main.go
+++ b/main.go
@@ -44,6 +44,10 @@ func (n *room) Kick(nick string, message ...string) {
n.conn.Kick(n.target, nick, message...)
}
+func (n *room) Ban(nick string) {
+ n.conn.Mode(n.target, "+b", nick+"!*@*")
+}
+
type message struct {
title *title.Titles
flood *flood.Check