summaryrefslogtreecommitdiff
path: root/irc/session.go
diff options
context:
space:
mode:
authordelthas <delthas@dille.cc>2022-12-21 15:57:30 +0100
committerdelthas <delthas@dille.cc>2022-12-21 15:57:38 +0100
commit08449325007875e9ef858481733ee3fbe1a4b2eb (patch)
tree2b10f620ddf1f235fdc2593affefc0a714372709 /irc/session.go
parentBump go-libnp (diff)
Implement /OPER
Fixes: https://todo.sr.ht/~taiite/senpai/105
Diffstat (limited to 'irc/session.go')
-rw-r--r--irc/session.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/irc/session.go b/irc/session.go
index 0e0d6ba..cd56ee1 100644
--- a/irc/session.go
+++ b/irc/session.go
@@ -361,6 +361,10 @@ func (s *Session) ChangeNick(nick string) {
s.out <- NewMessage("NICK", nick)
}
+func (s *Session) Oper(username string, password string) {
+ s.out <- NewMessage("OPER", username, password)
+}
+
func (s *Session) MOTD() {
s.out <- NewMessage("MOTD")
}