diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2010-11-12 17:28:10 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2010-11-12 17:28:10 +0100 |
commit | fc910930652578f4b3af377a37595de7171d7778 (patch) | |
tree | 01a99286af8038a590d44ba3ede0ef7d0907cce7 | |
parent | f27f5a6cb069647efe1c01bb7cd54f042f843bec (diff) | |
download | weechat-fc910930652578f4b3af377a37595de7171d7778.zip |
Fix bug with priority (low/high) for irc messages (all messages were sent with low priority)
-rw-r--r-- | src/plugins/irc/irc-server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/irc/irc-server.c b/src/plugins/irc/irc-server.c index dec1350af..e84225bac 100644 --- a/src/plugins/irc/irc-server.c +++ b/src/plugins/irc/irc-server.c @@ -1778,9 +1778,9 @@ irc_server_send_one_msg (struct t_irc_server *server, int flags, /* get queue from flags */ queue_msg = 0; - if (flags && IRC_SERVER_SEND_OUTQ_PRIO_HIGH) + if (flags & IRC_SERVER_SEND_OUTQ_PRIO_HIGH) queue_msg = 1; - else if (flags && IRC_SERVER_SEND_OUTQ_PRIO_LOW) + else if (flags & IRC_SERVER_SEND_OUTQ_PRIO_LOW) queue_msg = 2; switch (queue_msg - 1) |