summaryrefslogtreecommitdiff
path: root/irc
diff options
context:
space:
mode:
authordelthas <delthas@dille.cc>2022-07-06 22:17:13 +0200
committerdelthas <delthas@dille.cc>2022-07-06 22:17:13 +0200
commite24f9a5b7f69875d6c0e18303f7f28158a36856f (patch)
treefd3295a6732c63f9a0baf55c413ab69ed02c0b95 /irc
parentReset history when flushing lines (diff)
Implement /whois
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 9da44cc..2bf2623 100644
--- a/irc/session.go
+++ b/irc/session.go
@@ -564,6 +564,10 @@ func (s *Session) NewHistoryRequest(target string) *HistoryRequest {
}
}
+func (s *Session) Whois(nick string) {
+ s.out <- NewMessage("WHOIS", nick)
+}
+
func (s *Session) Invite(nick, channel string) {
s.out <- NewMessage("INVITE", nick, channel)
}