Additions:
[[AthemeMemoServ]] - List module
%%(c)
%%
----
[[CategoryAtheme]]
%%(c)
%%
----
[[CategoryAtheme]]
Additions:
* $Id: list.c 2597 2005-10-05 06:37:06Z kog $
"$Id: list.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, "LIST", "help/memoserv/list", NULL);
help_delentry(ms_helptree, "LIST");
/* Misc structs etc */
user_t *u = user_find(origin);
myuser_t *mu = u->myuser;
mymemo_t *memo;
node_t *n;
uint8_t i = 0;
notice(memosvs.nick, origin, "You have %d memo%s.", mu->memos.count,
(!mu->memos.count || mu->memos.count > 1) ? "s":"");
/* Check to see if any memos */
if (!mu->memos.count)
/* Go to listing memos */
notice(memosvs.nick, origin, "");
LIST_FOREACH(n, mu->memos.head)
{
i++;
memo = (mymemo_t *)n->data;
notice(memosvs.nick, origin, "%d - %s sent at %s",
i,memo->sender,timediff(memo->sent - 0));
}
"$Id: list.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, "LIST", "help/memoserv/list", NULL);
help_delentry(ms_helptree, "LIST");
/* Misc structs etc */
user_t *u = user_find(origin);
myuser_t *mu = u->myuser;
mymemo_t *memo;
node_t *n;
uint8_t i = 0;
notice(memosvs.nick, origin, "You have %d memo%s.", mu->memos.count,
(!mu->memos.count || mu->memos.count > 1) ? "s":"");
/* Check to see if any memos */
if (!mu->memos.count)
/* Go to listing memos */
notice(memosvs.nick, origin, "");
LIST_FOREACH(n, mu->memos.head)
{
i++;
memo = (mymemo_t *)n->data;
notice(memosvs.nick, origin, "%d - %s sent at %s",
i,memo->sender,timediff(memo->sent - 0));
}
Deletions:
%%(c)
* $Id: $
"$Id: $",
/* misc structs etc */
myuser_t *mu = myuser_find(origin);
list_t *memos = &mu->memos;
struct mymemo_ memo;
notice(memosvs.nick, origin, "You have %d memos", memos->count);
/* check to see if any memos */
if (!memos->count)
%%
----
[[CategoryAtheme]]
Additions:
[[AthemeMemoServ]] - List module
----
[[CategoryAtheme]]
----
[[CategoryAtheme]]
Additions:
if (!memos->count)