summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Pamment <apamment@yandex.com>2019-03-02 04:11:23 +1000
committerAndrew Pamment <apamment@yandex.com>2019-03-02 04:11:23 +1000
commita41dbcda6766577d4d79a48e5ecb45dcc8fc30a4 (patch)
tree4b342a9515dcbcba53d428ac8310e49f1872d884
parent63fd9d59e44ff69839a55352254395db745f344e (diff)
Forgot return statement
-rwxr-xr-xsrc/msglib/msglib_sq3.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/msglib/msglib_sq3.c b/src/msglib/msglib_sq3.c
index 4e7546d..50c45ad 100755
--- a/src/msglib/msglib_sq3.c
+++ b/src/msglib/msglib_sq3.c
@@ -524,7 +524,7 @@ int sq3_new_message_count(struct msg_base_t *mb, struct user_record *user) {
const char *from = sqlite3_column_text(res, 0);
const char *oaddress = sqlite3_column_text(res, 2);
const char *daddress = sqlite3_column_text(res, 3);
- if (sqlite3_column_int(res, 4) & SQ3_MSG_PRIVATE) {
+ if (sqlite3_column_int(res, 4) | SQ3_MSG_PRIVATE) {
if (!(!msg_is_to(user, to, daddress, mb->mc->nettype, mb->mc->realnames, mb->mc) &&
!msg_is_from(user, from, oaddress, mb->mc->nettype, mb->mc->realnames, mb->mc) &&
!msg_is_to(user, to, daddress, mb->mc->nettype, !mb->mc->realnames, mb->mc) &&
@@ -539,4 +539,6 @@ int sq3_new_message_count(struct msg_base_t *mb, struct user_record *user) {
sqlite3_finalize(res);
sqlite3_close(dbase);
+
+ return count;
}