The 'channels' argument was unnecessary because the channel list passed to it would always be from get_server_channels(server) anyway. Changing the message argument from a protocol message format string to a plain payload string for PRIVMSG means printf-escaping of the argument is avoided in the caller. This simplifies the callers and means we can remove the last use of quote_it(). This change also switches set_server_away() to use send_msg_to_channels() instead of open-coding the equivalent, which simplifies that function a lot. We are changing the signature of a function exported to modules here; however none of the in-tree modules use this function so it should be OK.
13 KiB
13 KiB