Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita3618b9

Browse files
committed
Add list command
1 parente4d5d27 commita3618b9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

‎pkg/irc/client.go‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,10 @@ func (c *Client) Away(message string) {
151151
c.Write("AWAY :"+message)
152152
}
153153

154+
func (c*Client)List() {
155+
c.Write("LIST")
156+
}
157+
154158
func (c*Client)writePass(passwordstring) {
155159
c.write("PASS "+password)
156160
}

‎pkg/irc/const.go‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ const (
2828
ReplyWhoisIdle="317"
2929
ReplyEndOfWhois="318"
3030
ReplyWhoisChannels="319"
31+
ReplyList="322"
32+
ReplyListEnd="323"
3133
ReplyNoTopic="331"
3234
ReplyTopic="332"
3335
ReplyNamReply="353"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp