ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/modules/core/m_message.c
(Generate patch)

Comparing ircd-hybrid-8/modules/core/m_message.c (file contents):
Revision 1175 by michael, Sun Aug 14 10:47:48 2011 UTC vs.
Revision 1176 by michael, Sun Aug 14 11:24:24 2011 UTC

# Line 447 | Line 447 | msg_channel(int p_or_n, const char *comm
447    {
448      /* idle time shouldnt be reset by notices --fl */
449      if (p_or_n != NOTICE)
450 <      source_p->localClient->last = CurrentTime;
450 >      source_p->localClient->last_privmsg = CurrentTime;
451    }
452  
453    /* chanops and voiced can flood their own channel with impunity */
# Line 511 | Line 511 | msg_channel_flags(int p_or_n, const char
511    {
512      /* idletime shouldnt be reset by notice --fl */
513      if (p_or_n != NOTICE)
514 <      source_p->localClient->last = CurrentTime;
514 >      source_p->localClient->last_privmsg = CurrentTime;
515  
516      sendto_channel_local_butone(source_p, type, chptr, ":%s!%s@%s %s %c%s :%s",
517                                  source_p->name, source_p->username,
# Line 556 | Line 556 | msg_client(int p_or_n, const char *comma
556    if (MyConnect(source_p))
557    {
558      /*
559 <     * reset idle time for message only if its not to self
560 <     * and its not a notice
561 <     * NOTE: Normally we really should reset their idletime
562 <     * if the are messaging themselves, but we have to go
563 <     * this way in order to prevent them to trick out
564 <     * idle-klines.
559 >     * reset idle time for message only if it's not a notice
560       */
561 <    if ((p_or_n != NOTICE) && (source_p != target_p))
562 <      source_p->localClient->last = CurrentTime;
561 >    if ((p_or_n != NOTICE))
562 >      source_p->localClient->last_privmsg = CurrentTime;
563  
564      if ((p_or_n != NOTICE) && target_p->away)
565        sendto_one(source_p, form_str(RPL_AWAY), me.name,
# Line 817 | Line 812 | handle_special(int p_or_n, const char *c
812                     ID_or_name(source_p, target_p->from),
813                     command, nick, text);
814          if ((p_or_n != NOTICE) && MyClient(source_p))
815 <          source_p->localClient->last = CurrentTime;
815 >          source_p->localClient->last_privmsg = CurrentTime;
816          return;
817        }
818  
# Line 859 | Line 854 | handle_special(int p_or_n, const char *c
854                       source_p->name, source_p->username, source_p->host,
855                       command, nick, text);
856            if ((p_or_n != NOTICE) && MyClient(source_p))
857 <            source_p->localClient->last = CurrentTime;
857 >            source_p->localClient->last_privmsg = CurrentTime;
858          }
859          else
860            sendto_one(source_p, form_str(ERR_TOOMANYTARGETS),
# Line 929 | Line 924 | handle_special(int p_or_n, const char *c
924                          "%s $%s :%s", command, nick, text);
925  
926      if ((p_or_n != NOTICE) && MyClient(source_p))
927 <      source_p->localClient->last = CurrentTime;
927 >      source_p->localClient->last_privmsg = CurrentTime;
928  
929      return;
930    }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines