mirror of
https://github.com/anope/anope.git
synced 2026-07-04 12:23:12 +02:00
BUILD : 1.7.6 (492) BUGS : N/A NOTES : Some gcc2 errors fixed
git-svn-id: svn://svn.anope.org/anope/trunk@492 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@346 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
parent
086424f523
commit
90228e81bc
+4
-3
@@ -422,6 +422,7 @@ static void do_news_add(User * u, int16 type, int *msgs,
|
||||
const char *typename)
|
||||
{
|
||||
char *text = strtok(NULL, "");
|
||||
int n;
|
||||
|
||||
if (!text) {
|
||||
char buf[32];
|
||||
@@ -432,7 +433,7 @@ static void do_news_add(User * u, int16 type, int *msgs,
|
||||
notice_lang(s_OperServ, u, READ_ONLY_MODE);
|
||||
return;
|
||||
}
|
||||
int n = add_newsitem(u, text, type);
|
||||
n = add_newsitem(u, text, type);
|
||||
if (n < 0)
|
||||
notice_lang(s_OperServ, u, msgs[MSG_ADD_FULL]);
|
||||
else
|
||||
@@ -483,7 +484,7 @@ static void do_news_del(User * u, int16 type, int *msgs,
|
||||
const char *typename)
|
||||
{
|
||||
char *text = strtok(NULL, " ");
|
||||
int i;
|
||||
int i, num;
|
||||
|
||||
if (!text) {
|
||||
char buf[32];
|
||||
@@ -495,7 +496,7 @@ static void do_news_del(User * u, int16 type, int *msgs,
|
||||
return;
|
||||
}
|
||||
if (stricmp(text, "ALL") != 0) {
|
||||
int num = atoi(text);
|
||||
num = atoi(text);
|
||||
if (num > 0 && del_newsitem(num, type)) {
|
||||
notice_lang(s_OperServ, u, msgs[MSG_DELETED], num);
|
||||
/* Reset the order - #0000397 */
|
||||
|
||||
+5
-1
@@ -8,10 +8,14 @@
|
||||
VERSION_MAJOR="1"
|
||||
VERSION_MINOR="7"
|
||||
VERSION_PATCH="6"
|
||||
VERSION_BUILD="491"
|
||||
VERSION_BUILD="492"
|
||||
|
||||
# $Log$
|
||||
#
|
||||
# BUILD : 1.7.6 (492)
|
||||
# BUGS : N/A
|
||||
# NOTES : Some gcc2 errors fixed
|
||||
#
|
||||
# BUILD : 1.7.6 (491)
|
||||
# BUGS : N/A
|
||||
# NOTES : Forgot to update the change log
|
||||
|
||||
Reference in New Issue
Block a user