Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions modules/m_rehash.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
#include "hash.h"
#include "cache.h"
#include "sslproc.h"

static int mo_rehash(struct Client *, struct Client *, int, const char **);
static int me_rehash(struct Client *, struct Client *, int, const char **);

Expand Down Expand Up @@ -109,9 +110,6 @@ rehash_motd(struct Client *source_p)
if (!MyConnect(source_p))
remote_rehash_oper_p = source_p;

free_cachefile(user_motd);
user_motd = cache_file(MPATH, "ircd.motd", 0);

if(stat(MPATH, &sb) == 0) {
local_tm = localtime(&sb.st_mtime);

Expand All @@ -123,6 +121,8 @@ rehash_motd(struct Client *source_p)
local_tm->tm_min);
}
}
free_cachefile(user_motd);
user_motd = cache_file(MPATH, "ircd.motd", 0);
}

static void
Expand Down