diff options
| author | Viper <Viper@Anope.org> | 2011-03-24 23:43:53 +0100 |
|---|---|---|
| committer | Viper <Viper@Anope.org> | 2011-03-24 23:43:53 +0100 |
| commit | 841b3f689eed1573bd816454ed9e72fc1d87a2df (patch) | |
| tree | ecc62e74dd80923984183ed203632f7c956292d1 /src/memoserv.c | |
| parent | 0315bd31f817b4d8266ef4802e33414643fa2ac8 (diff) | |
Fixed bug #1252 - The group display nick showing in HS req memos instead of the requesting alias.
Also cleaned up the mess in Changes...
Diffstat (limited to 'src/memoserv.c')
| -rw-r--r-- | src/memoserv.c | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/src/memoserv.c b/src/memoserv.c index e012ab4af..3b18a9e4a 100644 --- a/src/memoserv.c +++ b/src/memoserv.c @@ -183,7 +183,8 @@ MemoInfo *getmemoinfo(const char *name, int *ischan, int *isforbid) /*************************************************************************/ /** - * Split from do_send, this way we can easily send a memo from any point + * Split from do_send, this way we can easily send a memo from any point. + * * @param u User Struct * @param name Target of the memo * @param text Memo Text @@ -196,12 +197,30 @@ MemoInfo *getmemoinfo(const char *name, int *ischan, int *isforbid) */ void memo_send(User * u, char *name, char *text, int z) { + memo_send_from(u, name, text, z, u->na->nc->display); +} + +/** + * Split from do_send, this way we can easily send a memo from any point. + * + * @param u User Struct + * @param name Target of the memo + * @param text Memo Text + * @param z type see info + * @param source Nickname of the alias the memo originates from. + * 0 - reply to user + * 1 - silent + * 2 - silent with no delay timer + * 3 - reply to user and request read receipt + * @return void + */ +void memo_send_from(User * u, char *name, char *text, int z, char *source) +{ int ischan; int isforbid; Memo *m; MemoInfo *mi; time_t now = time(NULL); - char *source = u->na->nc->display; int is_servoper = is_services_oper(u); if (readonly) { |
