diff --git a/golded3/gectrl.cpp b/golded3/gectrl.cpp index 30c2025..b9f4219 100644 --- a/golded3/gectrl.cpp +++ b/golded3/gectrl.cpp @@ -35,6 +35,19 @@ int _use_fwd = true; +// ------------------------------------------------------------------ + +static uint32_t msgcount = 0; + + +// ------------------------------------------------------------------ + +static uint32_t getMsgId() +{ + return gtime(NULL)+(msgcount++); +} + + // ------------------------------------------------------------------ bool isuucp(const char *name) { diff --git a/golded3/geprot.h b/golded3/geprot.h index ea5b41a..d709ecc 100644 --- a/golded3/geprot.h +++ b/golded3/geprot.h @@ -435,13 +435,6 @@ void update_addressbook(GMsg* msg, bool reverse = false, bool force = false); void edit_addressbook(GMsg* msg); -// ------------------------------------------------------------------ -// GEMSGID prototypes - -uint32_t getMsgId(); -uint32_t getClassicMsgId(); - - // ------------------------------------------------------------------ // SOFTCR management