projects
/
srvx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6bdd80
)
fixed bug in advtopic code
author
pk910
<philipp@zoelle1.de>
Sat, 3 Mar 2012 09:04:03 +0000
(10:04 +0100)
committer
pk910
<philipp@zoelle1.de>
Sat, 3 Mar 2012 09:04:03 +0000
(10:04 +0100)
src/chanserv.c
patch
|
blob
|
history
diff --git
a/src/chanserv.c
b/src/chanserv.c
index 4e41784b0aa289a7506251bd28bb6667740dcf5a..887b95aaa3c4e8ffb8b40ed44f42d253894bf04a 100644
(file)
--- a/
src/chanserv.c
+++ b/
src/chanserv.c
@@
-4421,10
+4421,10
@@
static CHANSERV_FUNC(cmd_topic)
if(!isdigit(topic[pos]))
break;
}
- if(advtopic_index < 0 || advtopic_index > MAXADVTOPICENTRIES)
+ if(advtopic_index < 0 || advtopic_index >
=
MAXADVTOPICENTRIES)
{
//invalid id!
- reply("CSMSG_ADVTOPIC_INVALID_ID", advtopic_index);
+ reply("CSMSG_ADVTOPIC_INVALID_ID", advtopic_index
+1
);
return 0;
}
if(cData->advtopic[advtopic_index])