Should have a sane way to split PRIVMSG into multiple lines and so on, that is line-capped. (the 512 byte limit which includes the sender information. "PRIVMSG foo :bar", cap "nick!user@host PRIVMSG foo :bar\r\n")
Then also probably want to escape unsafe input such as:
PRIVMSG #channel :line1\r\nQUIT
Finally to find the exact length of the host/user/nick bit, do a WHOIS of yourself to find out that information. of course you'd need to track host changes (e.g. when activating a cloak later), so you'd want to listen for that message if you don't want to WHOIS yourself every time you send a message
Should have a sane way to split PRIVMSG into multiple lines and so on, that is line-capped. (the 512 byte limit which includes the sender information.
"PRIVMSG foo :bar", cap "nick!user@host PRIVMSG foo :bar\r\n"
)Then also probably want to escape unsafe input such as:
PRIVMSG #channel :line1\r\nQUIT
Finally to find the exact length of the host/user/nick bit, do a
WHOIS
of yourself to find out that information.of course you'd need to track host changes (e.g. when activating a cloak later), so you'd want to listen for that message if you don't want to WHOIS yourself every time you send a message