From fe01470ff6da8f3a97a185719834d682ed9a04c8 Mon Sep 17 00:00:00 2001 From: "certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Fri, 16 Jun 2006 21:41:42 +0000 Subject: [PATCH] just a coding booboo. git-svn-id: svn://svn.anope.org/anope/trunk@1056 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@780 5417fbe8-f217-4b02-8779-1006273d7864 --- src/modules/ns_noop.c | 8 ++++---- version.log | 6 +++++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/modules/ns_noop.c b/src/modules/ns_noop.c index 26836c25b..ee1b4a93e 100644 --- a/src/modules/ns_noop.c +++ b/src/modules/ns_noop.c @@ -136,7 +136,7 @@ int noop(User * u) } else if (!toggleStr) { if ((na = findnick(u->nick))) { char *tmpstr = NULL; - if (tmpstr = moduleGetData(&na->nc->moduleData, "autoop")) { + if ((tmpstr = moduleGetData(&na->nc->moduleData, "autoop"))) { moduleNoticeLang(s_NickServ, u, AUTOOP_STATUS_OFF); free(tmpstr); } else { @@ -216,7 +216,7 @@ int mEventJoin(int argc, char **argv) if (user && (na = user->na)) { if (strcmp(argv[0], EVENT_START) == 0) { char *tmpstr = NULL; - if (tmpstr = moduleGetData(&na->nc->moduleData, "autoop")) { + if ((tmpstr = moduleGetData(&na->nc->moduleData, "autoop"))) { currentUser = user; if (is_oper(user)) { user->mode &= ~(anope_get_oper_mode()); @@ -228,7 +228,7 @@ int mEventJoin(int argc, char **argv) } else { char *tmpstr = NULL; /* Does the user have the autoop info in his moduleData? */ - if (tmpstr = moduleGetData(&na->nc->moduleData, "autoop")) { + if ((tmpstr = moduleGetData(&na->nc->moduleData, "autoop"))) { /* The most dirty solution ever! - doc */ if (m_isIRCop) user->mode |= anope_get_oper_mode(); @@ -304,7 +304,7 @@ int mSaveData(int argc, char **argv) for (nc = nclists[i]; nc; nc = nc->next) { char *tmpstr = NULL; /* If we have any info on this user */ - if (tmpstr = moduleGetData(&nc->moduleData, "autoop")) { + if ((tmpstr = moduleGetData(&nc->moduleData, "autoop"))) { fprintf(out, "%s\n", nc->display); free(tmpstr); } diff --git a/version.log b/version.log index 17c6ccf83..187a6398c 100644 --- a/version.log +++ b/version.log @@ -9,10 +9,14 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="14" VERSION_EXTRA="" -VERSION_BUILD="1052" +VERSION_BUILD="1053" # $Log$ # +# BUILD : 1.7.14 (1053) +# BUGS : +# NOTES : just a booboo. +# # BUILD : 1.7.14 (1052) # BUGS : # NOTES : Fixed several memleaks in ns_noop.c. Certus 4 teh win!