mirror of
https://github.com/weechat/weechat.git
synced 2026-06-27 13:26:38 +02:00
irc: fix random date displayed when a received message contains tags but no "time" (issue #2064)
This commit is contained in:
@@ -43,7 +43,7 @@ extern "C"
|
||||
command_record ("core.weechat", __command);
|
||||
|
||||
#define WEE_CHECK_MSG_BUFFER(__buffer_name, __prefix, __message) \
|
||||
if (record_search (__buffer_name, __prefix, __message, NULL) < 0) \
|
||||
if (!record_search (__buffer_name, __prefix, __message, NULL)) \
|
||||
{ \
|
||||
char **msg = command_build_error (__buffer_name, __prefix, \
|
||||
__message); \
|
||||
@@ -53,8 +53,6 @@ extern "C"
|
||||
|
||||
#define WEE_CHECK_MSG_CORE(__prefix, __message) \
|
||||
WEE_CHECK_MSG_BUFFER("core.weechat", __prefix, __message);
|
||||
#define WEE_SEARCH_MSG_CORE(__prefix, __message) \
|
||||
record_search ("core.weechat", __prefix, __message, NULL)
|
||||
|
||||
|
||||
TEST_GROUP(CoreCommand)
|
||||
@@ -380,10 +378,10 @@ TEST(CoreCommand, Reload)
|
||||
{
|
||||
WEE_CMD_CORE("/save");
|
||||
WEE_CMD_CORE("/reload");
|
||||
LONGS_EQUAL(0, WEE_SEARCH_MSG_CORE("", "Options reloaded from sec.conf"));
|
||||
LONGS_EQUAL(1, WEE_SEARCH_MSG_CORE("", "Options reloaded from weechat.conf"));
|
||||
LONGS_EQUAL(2, WEE_SEARCH_MSG_CORE("", "Options reloaded from plugins.conf"));
|
||||
LONGS_EQUAL(3, WEE_SEARCH_MSG_CORE("", "Options reloaded from charset.conf"));
|
||||
WEE_CHECK_MSG_CORE("", "Options reloaded from sec.conf");
|
||||
WEE_CHECK_MSG_CORE("", "Options reloaded from weechat.conf");
|
||||
WEE_CHECK_MSG_CORE("", "Options reloaded from plugins.conf");
|
||||
WEE_CHECK_MSG_CORE("", "Options reloaded from charset.conf");
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user