1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 01:16:38 +02:00

BUILD : 1.7.5 (364) NOTES : Added nullfix patch from Trystan.

git-svn-id: svn://svn.anope.org/anope/trunk@364 31f1291d-b8d6-0310-a050-a5561fc1590b


git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@235 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
dane dane@31f1291d-b8d6-0310-a050-a5561fc1590b
2004-10-01 02:26:24 +00:00
parent a9dd1756cf
commit 7bc5f4a8ed
6 changed files with 55 additions and 5 deletions
+1 -1
View File
@@ -192,7 +192,7 @@ void botchanmsgs(User * u, ChannelInfo * ci, char *buf)
UserData *ud;
if (!u) {
if (!u || !buf || !ci) {
return;
}
+7
View File
@@ -305,6 +305,13 @@ Channel *findchan(const char *chan)
{
Channel *c;
if (!chan || !*chan) {
if (debug) {
alog("Error: findchan() called with NULL values");
}
return NULL;
}
if (debug >= 3)
alog("debug: findchan(%p)", chan);
c = chanlist[HASH(chan)];
+16 -2
View File
@@ -1945,6 +1945,13 @@ ChannelInfo *cs_findchan(const char *chan)
{
ChannelInfo *ci;
if (!chan || !*chan) {
if (debug) {
alog("Error: finduser() called with NULL values");
}
return NULL;
}
for (ci = chanlists[tolower(chan[1])]; ci; ci = ci->next) {
if (stricmp(ci->name, chan) == 0)
return ci;
@@ -1962,8 +1969,15 @@ ChannelInfo *cs_findchan(const char *chan)
int check_access(User * user, ChannelInfo * ci, int what)
{
int level = get_access(user, ci);
int limit = ci->levels[what];
int level;
int limit;
if (!user || !ci) {
return 0;
}
level = get_access(user, ci);
limit = ci->levels[what];
/* Resetting the last used time */
if (level > 0)
+20 -1
View File
@@ -1252,8 +1252,13 @@ NickRequest *findrequestnick(const char *nick)
{
NickRequest *nr;
if (!nick)
if (!nick || !*nick) {
if (debug) {
alog("Error: findrequestnick() called with NULL values");
}
return NULL;
}
for (nr = nrlists[HASH(nick)]; nr; nr = nr->next) {
if (stricmp(nr->nick, nick) == 0)
return nr;
@@ -1268,6 +1273,13 @@ NickAlias *findnick(const char *nick)
{
NickAlias *na;
if (!nick || !*nick) {
if (debug) {
alog("Error: findnick() called with NULL values");
}
return NULL;
}
for (na = nalists[HASH(nick)]; na; na = na->next) {
if (stricmp(na->nick, nick) == 0)
return na;
@@ -1285,6 +1297,13 @@ NickCore *findcore(const char *nick)
{
NickCore *nc;
if (!nick || !*nick) {
if (debug) {
alog("Error: findcore() called with NULL values");
}
return NULL;
}
for (nc = nclists[HASH(nick)]; nc; nc = nc->next) {
if (stricmp(nc->display, nick) == 0)
return nc;
+7
View File
@@ -306,6 +306,13 @@ User *finduser(const char *nick)
{
User *user;
if (!nick || !*nick) {
if (debug) {
alog("Error: finduser() called with NULL values");
}
return NULL;
}
if (debug >= 3)
alog("debug: finduser(%p)", nick);
user = userlist[HASH(nick)];
+4 -1
View File
@@ -8,10 +8,13 @@
VERSION_MAJOR="1"
VERSION_MINOR="7"
VERSION_PATCH="5"
VERSION_BUILD="363"
VERSION_BUILD="364"
# $Log$
#
# BUILD : 1.7.5 (364)
# NOTES : Added nullfix patch from Trystan.
#
# BUILD : 1.7.5 (363)
# NOTES : Added unreal fix from Trystan.
#