diff options
author | trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-10-10 05:51:21 +0000 |
---|---|---|
committer | trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-10-10 05:51:21 +0000 |
commit | 20d3109377483a6a06ff9d62774b39989bb1a8f4 (patch) | |
tree | 6b41d0d9becb952b4bca46a6f9284c5033778cf2 /src/messages.c | |
parent | e087af8c27ab8da9299531c3019be43f060df34e (diff) |
BUILD : 1.7.5 (383) BUGS : N/A NOTES : glist fix - DrStein, improved on DrStein typo fix to init.c - TSL, tons of NULL crash checks - TSL
git-svn-id: svn://svn.anope.org/anope/trunk@383 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@252 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/messages.c')
-rw-r--r-- | src/messages.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/messages.c b/src/messages.c index c9408a4ac..02f1cd899 100644 --- a/src/messages.c +++ b/src/messages.c @@ -72,6 +72,10 @@ int m_time(char *source, int ac, char **av) struct tm *tm; char buf[64]; + if (!source) { + return MOD_CONT; + } + time(&t); tm = localtime(&t); strftime(buf, sizeof(buf), "%a %b %d %H:%M:%S %Y %Z", tm); @@ -86,6 +90,10 @@ int m_motd(char *source) FILE *f; char buf[BUFSIZE]; + if (!source) { + return MOD_CONT; + } + f = fopen(MOTDFilename, "r"); anope_cmd_375(source); if (f) { |