summaryrefslogtreecommitdiff
path: root/irc/session.go
diff options
context:
space:
mode:
authordelthas <delthas@dille.cc>2022-11-22 11:10:05 +0100
committerdelthas <delthas@dille.cc>2022-11-22 11:10:05 +0100
commitc7d2032082d3f96dafbe92d774feb98b0fa0af4d (patch)
tree4fc489ebf3ab8c7072cd0032aaf6c41f7699657f /irc/session.go
parentSupport irc URLs in the config addr (diff)
Implement /MOTD
Diffstat (limited to '')
-rw-r--r--irc/session.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/irc/session.go b/irc/session.go
index 3706cad..04942ae 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) MOTD() {
+ s.out <- NewMessage("MOTD")
+}
+
func (s *Session) Who(target string) {
if s.whox {
// only request what we need, to optimize server who cache hits and reduce traffic