Currently, the method that sends the message looks similar to this (there is some more stuff but this is the interesting part):
def writeToChat(message)
# some more code
writeToSystem decode("PRIVMSG ##{@channel} :#{message}")
# some more code
end
@channel is just a string containing the channel name.
The writeToSystem method just sends the given string as-is to the server. So it should work if I use the correct line ending?
So an example string would look something like this: PRIVMSG #stunthacks :This is a test.