Skip to content

Instantly share code, notes, and snippets.

@soul9
Created October 19, 2010 11:18
Show Gist options
  • Save soul9/634035 to your computer and use it in GitHub Desktop.
Save soul9/634035 to your computer and use it in GitHub Desktop.
irc.go.diff
diff --git a/irc.go b/irc.go
index 683d98b..64e09de 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)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment