diff options
| author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-08-19 23:13:30 +0000 |
|---|---|---|
| committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-08-19 23:13:30 +0000 |
| commit | 6ce5c90619491440fc68f011c372feaaaf9d66dc (patch) | |
| tree | 8e27c7a340a01d6c8cc13229369aabdb50a76d8b /src/chanserv.c | |
| parent | 6c62e3968051283b73aa817966058906f28f289e (diff) | |
Add a few items to outstanding issues in TODO, clean up a lot of warnings (not all, some require more widespread changes than this), and fix a few potential bugs.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2457 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/chanserv.c')
| -rw-r--r-- | src/chanserv.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/chanserv.c b/src/chanserv.c index ea470e064..e12ad9b8c 100644 --- a/src/chanserv.c +++ b/src/chanserv.c @@ -132,12 +132,12 @@ class ChanServTimer : public Timer { private: std::string channel; - + public: ChanServTimer(long delay, const std::string &chan) : Timer(delay), channel(chan) { } - + void Tick(time_t ctime) { ChannelInfo *ci = cs_findchan(channel.c_str()); @@ -214,7 +214,7 @@ char *get_mlock_modes(ChannelInfo * ci, int complete) void get_chanserv_stats(long *nrec, long *memuse) { long count = 0, mem = 0; - int i, j; + unsigned i, j; ChannelInfo *ci; for (i = 0; i < 256; i++) { @@ -325,7 +325,8 @@ void chanserv(User * u, char *buf) void load_cs_dbase() { dbFILE *f; - int ver, i, j, c; + int ver, c; + unsigned i, j; ChannelInfo *ci, **last, *prev; int failed = 0; @@ -594,7 +595,7 @@ void load_cs_dbase() void save_cs_dbase() { dbFILE *f; - int i, j; + unsigned i, j; ChannelInfo *ci; static time_t lastwarn = 0; @@ -1133,7 +1134,7 @@ int check_kick(User * user, const char *chan, time_t chants) if (user->isSuperAdmin == 1) return 0; - /* We don't enforce services restrictions on clients on ulined services + /* We don't enforce services restrictions on clients on ulined services * as this will likely lead to kick/rejoin floods. ~ Viper */ if (is_ulined(user->server->name)) { return 0; @@ -1214,7 +1215,7 @@ int check_kick(User * user, const char *chan, time_t chants) { ircdproto->SendMode(findbot(s_ChanServ), chan, "+ntsi"); } - + t = new ChanServTimer(CSInhabit, chan); ci->flags |= CI_INHABIT; } @@ -1653,7 +1654,7 @@ ChannelInfo *makechan(const char *chan) int delchan(ChannelInfo * ci) { - int i; + unsigned i; NickCore *nc; User *u; struct u_chaninfolist *cilist, *cilist_next; |
