summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/commands.h2
-rw-r--r--include/config.h6
-rw-r--r--include/dns.h3
-rw-r--r--include/extern.h4
-rw-r--r--include/services.h4
5 files changed, 10 insertions, 9 deletions
diff --git a/include/commands.h b/include/commands.h
index 714d1c48d..545c9dd7b 100644
--- a/include/commands.h
+++ b/include/commands.h
@@ -114,7 +114,7 @@ class CoreExport Command : public Flags<CommandFlag>
* @param name The subcommand name
* @return The subcommand
*/
- virtual Command *FindSubcommand(const Anope::string &name);
+ virtual Command *FindSubcommand(const Anope::string &subcommand);
};
#endif // COMMANDS_H
diff --git a/include/config.h b/include/config.h
index f1a4ccca7..839af5db8 100644
--- a/include/config.h
+++ b/include/config.h
@@ -601,7 +601,7 @@ class ServerConfig
/* Force email when registering */
bool NSForceEmail;
/* Max number of nicks in a group */
- int NSMaxAliases;
+ unsigned NSMaxAliases;
/* Max number of allowed strings on the access list */
unsigned NSAccessMax;
/* Enforcer client user name */
@@ -756,7 +756,7 @@ class ServerConfig
/* How long before exceptions expire */
time_t ExceptionExpiry;
/* How many times to kill before adding an KILL */
- int MaxSessionKill;
+ unsigned MaxSessionKill;
/* Max limit that can be used for exceptions */
unsigned MaxSessionLimit;
/* How long session akills should last */
@@ -792,7 +792,7 @@ class ServerConfig
/* Timeout before defcon is reset */
time_t DefConTimeOut;
/* Session limiit to use when using defcon */
- int DefConSessionLimit;
+ unsigned DefConSessionLimit;
/* How long to add akills for defcon */
time_t DefConAKILL;
/* Chan modes for defcon */
diff --git a/include/dns.h b/include/dns.h
index 9f9d26fc3..44e8d515b 100644
--- a/include/dns.h
+++ b/include/dns.h
@@ -119,11 +119,12 @@ struct DNSRecord
/* Record class, should always be 1 */
unsigned short record_class;
/* Time to live */
- unsigned long ttl;
+ time_t ttl;
/* Record length */
unsigned short rdlength;
inline DNSRecord();
+ /* When this record was created in our cache */
time_t created;
};
diff --git a/include/extern.h b/include/extern.h
index cd8d1b70f..3b20bba8d 100644
--- a/include/extern.h
+++ b/include/extern.h
@@ -207,7 +207,7 @@ E void rsend_notify(User *u, Memo *m, const Anope::string &chan);
E void check_memos(User *u);
E MemoInfo *getmemoinfo(const Anope::string &name, bool &ischan, bool &isforbid);
E void memo_send(User *u, const Anope::string &name, const Anope::string &text, int z);
-E bool delmemo(MemoInfo *mi, int num);
+E bool delmemo(MemoInfo *mi, unsigned num);
/**** messages.c ****/
@@ -330,7 +330,7 @@ E Session *findsession(const Anope::string &host);
E Exception *find_host_exception(const Anope::string &host);
E Exception *find_hostip_exception(const Anope::string &host, const Anope::string &hostip);
-E int exception_add(User *u, const Anope::string &mask, int limit, const Anope::string &reason, const Anope::string &who, time_t expires);
+E int exception_add(User *u, const Anope::string &mask, unsigned limit, const Anope::string &reason, const Anope::string &who, time_t expires);
/**** sockets.cpp ****/
diff --git a/include/services.h b/include/services.h
index ae51653a0..4a02cadb9 100644
--- a/include/services.h
+++ b/include/services.h
@@ -484,7 +484,7 @@ class Memo : public Flags<MemoFlag>
struct MemoInfo
{
- int16 memomax;
+ unsigned memomax;
std::vector<Memo *> memos;
};
@@ -828,7 +828,7 @@ struct MailInfo
struct Exception
{
Anope::string mask; /* Hosts to which this exception applies */
- int limit; /* Session limit for exception */
+ unsigned limit; /* Session limit for exception */
Anope::string who; /* Nick of person who added the exception */
Anope::string reason; /* Reason for exception's addition */
time_t time; /* When this exception was added */