]> jfr.im git - irc/quakenet/newserv.git/commitdiff
Update lastuse(join) information for a channel if a user is on a channel when they...
authorPaul <redacted>
Sat, 9 Jun 2007 12:48:32 +0000 (12:48 +0000)
committerPaul <redacted>
Sat, 9 Jun 2007 12:48:32 +0000 (12:48 +0000)
chanserv/chanservuser.c

index 7c5dc9dc60aac0d9e24c262ff9e890c757e62ef1..9c06c161e6fcc7b8f0a612460c08349ae0b66a58 100644 (file)
@@ -677,8 +677,11 @@ void cs_doallautomodes(nick *np) {
     if (rcup->chan->index->channel) {
       /* Channel exists */
       if ((lp=getnumerichandlefromchanhash(rcup->chan->index->channel->users, np->numeric))) {
-       
-       /* User is on channel.. */
+        /* User is on channel.. */
+
+        /* Update last use time */
+        rcup->usetime=getnettime();
+
        localsetmodeinit(&changes, rcup->chan->index->channel, chanservnick);
        if (*lp & CUMODE_OP) {
          if (!IsService(np) && (CUIsDeny(rcup) || (CIsBitch(rcup->chan) && !CUHasOpPriv(rcup))))