Check queries against chanTypes

master
C. McEnroe 2020-02-02 17:45:19 -05:00
parent 0d6a60cc66
commit aec28a9327
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ static bool isAction(struct Message *msg) {
static void handlePrivmsg(struct Message *msg) {
require(msg, true, 2);
bool query = msg->params[0][0] != '#'; // FIXME: CHANTYPES.
bool query = !strchr(self.chanTypes, msg->params[0][0]);
bool network = query && strchr(msg->nick, '.');
bool notice = (msg->cmd[0] == 'N');
bool action = isAction(msg);