From c8a8473bf610d06733c3966ad1306adb06e36b17 Mon Sep 17 00:00:00 2001 From: "rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Sat, 29 Jan 2005 01:07:44 +0000 Subject: BUILD : 1.7.7 (559) BUGS : 291 NOTES : Fixed memoserv issue :) git-svn-id: svn://svn.anope.org/anope/trunk@559 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@412 5417fbe8-f217-4b02-8779-1006273d7864 --- src/memoserv.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/memoserv.c b/src/memoserv.c index 7cf876785..d2fe3e874 100644 --- a/src/memoserv.c +++ b/src/memoserv.c @@ -1406,14 +1406,16 @@ static int do_rsend(User * u) { char *name = strtok(NULL, " "); char *text = strtok(NULL, ""); + NickAlias *na = NULL; int z = 3; - NickAlias *na; - na = findnick(name); - - if (stricmp(na->nc->display, u->na->nc->display) == 0) { - notice_lang(s_MemoServ, u, MEMO_NO_RSEND_SELF); - return MOD_CONT; + if ((na = findnick(name))) { + if (u->na) { + if (stricmp(na->nc->display, u->na->nc->display) == 0) { + notice_lang(s_MemoServ, u, MEMO_NO_RSEND_SELF); + return MOD_CONT; + } + } } if (MSMemoReceipt == 1) { -- cgit