summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-14 13:23:02 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-14 13:23:02 +0000
commit7f6637281f64b4ed6b4fafe4dd0e03bd85bcab00 (patch)
treee8794828d5af33d1f2990fbe33961b10c6f5b11d /src
parent13509c0bb51cec9b0b5b522f89318a53436d6880 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/helperfuncs.cpp13
1 files changed, 3 insertions, 10 deletions
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<Module*> 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<userrec*> 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);