From 7f6637281f64b4ed6b4fafe4dd0e03bd85bcab00 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 14 Dec 2005 13:23:02 +0000 Subject: Removed deprecated direct reference to file_cache MOTD, RULES git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2405 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/helperfuncs.cpp | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'src/helperfuncs.cpp') diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index 3a508e9d6..7434a9bec 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -53,24 +53,17 @@ using namespace std; extern int MODCOUNT; extern std::vector modules; extern ServerConfig *Config; - extern time_t TIME; extern char lowermap[255]; static char list[MAXBUF]; extern userrec* fd_ref_table[65536]; - extern serverstats* stats; - static char already_sent[65536]; extern std::vector all_opers; - extern ClassVector Classes; - extern user_hash clientlist; extern chan_hash chanlist; extern command_table cmdlist; -extern file_cache MOTD; -extern file_cache RULES; void log(int level,char *text, ...) { @@ -116,7 +109,7 @@ void readfile(file_cache &F, const char* fname) { fgets(linebuf,sizeof(linebuf),file); linebuf[strlen(linebuf)-1]='\0'; - if (linebuf[0] == 0) + if (!*linebuf) { strcpy(linebuf," "); } @@ -850,7 +843,7 @@ char* chanmodes(chanrec *chan) { strlcat(scratch,"t",MAXMODES); } - if (chan->key[0]) + if (*chan->key) { strlcat(scratch,"k",MAXMODES); } @@ -874,7 +867,7 @@ char* chanmodes(chanrec *chan) { strlcat(scratch,"p",MAXMODES); } - if (chan->key[0]) + if (*chan->key) { strlcat(sparam," ",MAXBUF); strlcat(sparam,chan->key,MAXBUF); -- cgit v1.2.3