From 29a7052bc0c0a63d6cb960d96ba8d0d2238a4edb Mon Sep 17 00:00:00 2001 From: "geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Thu, 9 Dec 2004 20:03:55 +0000 Subject: BUILD : 1.7.6 (484) BUGS : 167 NOTES : Made BotServ !seen recognize the channel founder git-svn-id: svn://svn.anope.org/anope/trunk@484 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@338 5417fbe8-f217-4b02-8779-1006273d7864 --- src/botserv.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src') diff --git a/src/botserv.c b/src/botserv.c index 8b1fc120f..596f2b2f3 100644 --- a/src/botserv.c +++ b/src/botserv.c @@ -556,6 +556,16 @@ void botchanmsgs(User * u, ChannelInfo * ci, char *buf) } anope_cmd_privmsg(ci->bi->nick, ci->name, "%s", buf); + } else if (na->nc == ci->founder) { + /* User is the founder of the channel */ + char durastr[192]; + duration(u->na, durastr, sizeof(durastr), + time(NULL) - na->last_seen); + snprintf(buf, sizeof(buf), + getstring(u->na, BOT_SEEN_ON), target, + durastr); + anope_cmd_privmsg(ci->bi->nick, ci->name, "%s", + buf); } else { /* All other cases */ snprintf(buf, sizeof(buf), -- cgit