From 105d6d61d353b1bb56c4cbad2aefd3e103206946 Mon Sep 17 00:00:00 2001 From: tj Date: Tue, 19 Oct 2010 14:12:17 +0200 Subject: [PATCH] Add part, patch by soul9 --- irc.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/irc.go b/irc.go index 683d98b..fe85763 100644 --- a/irc.go +++ b/irc.go @@ -106,6 +106,10 @@ func (irc *IRCConnection) Join(channel string) { irc.pwrite <- fmt.Sprintf("JOIN %s\r\n", channel) } +func (irc *IRCConnection) Part(channel string) { + irc.pwrite <- fmt.Sprintf("PART %s\r\n", channel) +} + func (irc *IRCConnection) Notice(target, message string) { irc.pwrite <- fmt.Sprintf("NOTICE %s :%s\r\n", target, message) }