Created
October 19, 2010 11:18
-
-
Save soul9/634035 to your computer and use it in GitHub Desktop.
irc.go.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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