]> jfr.im git - irc/evilnet/x3.git/blobdiff - src/mod-memoserv.c
added a couple set helps
[irc/evilnet/x3.git] / src / mod-memoserv.c
index 64e24b0e214d46fdf2e9dde4e0a03740abb8a42f..bc31e8739947701eb0bfeaf694c0e16bd1062585 100644 (file)
@@ -3,7 +3,7 @@
  *
  * This file is part of x3.
  *
- * srvx is free software; you can redistribute it and/or modify
+ * x3 is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version.
@@ -548,16 +548,18 @@ memoserv_check_messages(struct userNode *user, UNUSED_ARG(struct handle_info *ol
     struct memo_account *ma;
     struct memo *memo;
 
-    if (!(ma = memoserv_get_account(user->handle_info))
-        || !(ma->flags & MEMO_NOTIFY_LOGIN))
-        return;
-    for (ii = unseen = 0; ii < ma->recvd.used; ++ii) {
-        memo = ma->recvd.list[ii];
-        if (!memo->is_read)
-            unseen++;
+    if (!user->uplink->burst) {
+        if (!(ma = memoserv_get_account(user->handle_info))
+            || !(ma->flags & MEMO_NOTIFY_LOGIN))
+            return;
+        for (ii = unseen = 0; ii < ma->recvd.used; ++ii) {
+            memo = ma->recvd.list[ii];
+            if (!memo->is_read)
+                unseen++;
+        }
+        if (ma->recvd.used && memoserv_conf.bot)
+            send_message(user, memoserv_conf.bot, "MSMSG_MEMOS_INBOX", unseen, ma->recvd.used - unseen);
     }
-    if (ma->recvd.used && memoserv_conf.bot)
-        send_message(user, memoserv_conf.bot, "MSMSG_MEMOS_INBOX", unseen, ma->recvd.used - unseen);
 }
 
 static void