From 68a75df0e7d42cb6d70ab3d55419f2cab5bce75b Mon Sep 17 00:00:00 2001 From: StalkR Date: Sun, 6 Jan 2013 19:52:11 +0100 Subject: [PATCH] state: nick: support for Bot mode (+B) --- state/nick.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/state/nick.go b/state/nick.go index 457bec1..d8f103c 100644 --- a/state/nick.go +++ b/state/nick.go @@ -20,13 +20,14 @@ type Nick struct { // This is only really useful for me, as we can't see other people's modes // without IRC operator privileges (and even then only on some IRCd's). type NickMode struct { - // MODE +i, +o, +w, +x, +z - Invisible, Oper, WallOps, HiddenHost, SSL bool + // MODE +B, +i, +o, +w, +x, +z + Bot, Invisible, Oper, WallOps, HiddenHost, SSL bool } // Map *irc.NickMode fields to IRC mode characters and vice versa var StringToNickMode = map[string]string{} var NickModeToString = map[string]string{ + "Bot": "B", "Invisible": "i", "Oper": "o", "WallOps": "w", @@ -94,6 +95,8 @@ func (nk *Nick) ParseModes(modes string) { modeop = true case '-': modeop = false + case 'B': + nk.Modes.Bot = modeop case 'i': nk.Modes.Invisible = modeop case 'o':