summaryrefslogtreecommitdiff
path: root/memoserv.c
diff options
context:
space:
mode:
authorrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-05-11 13:15:19 +0000
committerrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-05-11 13:15:19 +0000
commitb6210244dd8bbd2c9ad62ef8b7459385802c662c (patch)
tree732059690466ab501caa3018299d797c6ab06325 /memoserv.c
parent7ce3bb99f8b2f821181c2e64c632058fe02a8a21 (diff)
BUILD : 1.7.2 (92) BUGS : 43 NOTES : Fixed moduleData error with memo Data handeling
git-svn-id: svn://svn.anope.org/anope/trunk@92 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@68 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'memoserv.c')
-rw-r--r--memoserv.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/memoserv.c b/memoserv.c
index b02573740..04bac6fee 100644
--- a/memoserv.c
+++ b/memoserv.c
@@ -266,6 +266,7 @@ void memo_send(User * u, char *name, char *text, int z)
time_t now = time(NULL);
char *source = u->na->nc->display;
int is_servadmin = is_services_admin(u);
+ int j;
if (readonly) {
notice_lang(s_MemoServ, u, MEMO_SEND_DISABLED);
@@ -314,12 +315,15 @@ void memo_send(User * u, char *name, char *text, int z)
mi->memos = srealloc(mi->memos, sizeof(Memo) * mi->memocount);
m = &mi->memos[mi->memocount - 1];
strscpy(m->sender, source, NICKMAX);
+ for (j = 0; j < MAX_CMD_HASH; j++)
+ m->moduleData[j] = NULL;
if (mi->memocount > 1) {
m->number = m[-1].number + 1;
if (m->number < 1) {
int i;
- for (i = 0; i < mi->memocount; i++)
+ for (i = 0; i < mi->memocount; i++) {
mi->memos[i].number = i + 1;
+ }
}
} else {
m->number = 1;