Additions:
node_add(memo, n, &mu->memos);
Deletions:
memos = &mu->memos;
node_add(&memo, n, memos);
Additions:
/*
/* Populate struct */
/* Populate struct */
Deletions:
/* Create a memo struct and populate */
Additions:
//*
* $Id: send.c 2597 2005-10-05 06:37:06Z kog $
"$Id: send.c 2597 2005-10-05 06:37:06Z kog $",
list_t *ms_helptree;
ms_helptree = module_locate_symbol("memoserv/main", "ms_helptree");
help_addentry(ms_helptree, "SEND", "help/memoserv/send", NULL);
help_delentry(ms_helptree, "SEND");
mymemo_t *memo = smalloc(sizeof(mymemo_t));
char *m = strtok(NULL,"");
if (!target || !m)
/* Check to make sure target inbox not full - nenolod suggested
config_options.metadata_limit, perhaps a conf var or conf.h? FIXME*/
if (mu->memos.count > 30)
notice(memosvs.nick, origin, "%s's inbox is full", target);
memo->sent = CURRTIME;
memo->status = MEMO_NEW;
strlcpy(memo->sender,origin,NICKLEN);
strlcpy(memo->text,m,MEMOLEN);
* $Id: send.c 2597 2005-10-05 06:37:06Z kog $
"$Id: send.c 2597 2005-10-05 06:37:06Z kog $",
list_t *ms_helptree;
ms_helptree = module_locate_symbol("memoserv/main", "ms_helptree");
help_addentry(ms_helptree, "SEND", "help/memoserv/send", NULL);
help_delentry(ms_helptree, "SEND");
mymemo_t *memo = smalloc(sizeof(mymemo_t));
char *m = strtok(NULL,"");
if (!target || !m)
/* Check to make sure target inbox not full - nenolod suggested
config_options.metadata_limit, perhaps a conf var or conf.h? FIXME*/
if (mu->memos.count > 30)
notice(memosvs.nick, origin, "%s's inbox is full", target);
memo->sent = CURRTIME;
memo->status = MEMO_NEW;
strlcpy(memo->sender,origin,NICKLEN);
strlcpy(memo->text,m,MEMOLEN);
Deletions:
* $Id: $
"$Id: $",
struct mymemo_ memo;
char *subject = strtok(NULL, " ");
char *m = strtok(NULL,"\0");
if (!target || !subject || !m)
/* Check for memo subject length */
if (strlen(subject) > 30)
"Please use a shorter subject on your memo", target);
memo.sent = CURRTIME;
memo.status = MEMO_NEW;
strlcpy(memo.sender,origin,strlen(origin));
strlcpy(memo.subject,subject,strlen(subject));
strlcpy(memo.text,m,strlen(m));
Additions:
[[AthemeMemoServ]] - Send module
Deletions:
Additions:
[[AthemeMemoServ]]
----
[[CategoryAtheme]]
----
[[CategoryAtheme]]
Additions:
strlcpy(memo.sender,origin,strlen(origin));