diff options
author | geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-12-09 20:03:55 +0000 |
---|---|---|
committer | geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-12-09 20:03:55 +0000 |
commit | 29a7052bc0c0a63d6cb960d96ba8d0d2238a4edb (patch) | |
tree | 916507722bfe299b51431d2a74447bcb5a093433 /src | |
parent | 00fc166d0954521003acd87ddaf477505767d88e (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/botserv.c | 10 |
1 files changed, 10 insertions, 0 deletions
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), |