patchDcHub: Hub software for Direct Connect - Patches: patch #2749, users are enabled to send messages...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #2749: users are enabled to send messages to themselves

Submitted by:  Dirk Rieger <hhgoth>
Submitted on:  Sun 07 Mar 2004 12:54:48 PM UTC  
 
Category:  None Priority:  3 - Low
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open

Sun 07 Mar 2004 07:55:41 PM UTC, comment #1: 

...am I stupid ? ;)
thats correct:

      • process_ucmd.c.orig Sun Mar 7 13:51:01 2004

--- process_ucmd.c Sun Mar 7 13:49:50 2004
 ***************

      • 1598,1603 ****

--- 1598,1606 ----
 if(!strcmp(source_nick,luce->user_nick->str))
 goto leave; /* the source nickname does not match with connexion nickname */

+ if(strcmp(source_nick,dest_nick))
 + goto leave; /* drop private messages send to yourself */
 +
#if 1
 #warning code disabled (useful ?)
 #else

Dirk Rieger <hhgoth>
Sun 07 Mar 2004 12:54:48 PM UTC, original submission:  

this drops private messages if source and destnick are equal

      • process_ucmd.c.orig Sun Mar  7 13:51:01 2004

--- process_ucmd.c      Sun Mar  7 13:49:50 2004
***************

      • 1598,1603 ****

--- 1598,1606 ----
        if(strcmp(source_nick,luce->user_nick->str))
                goto leave;                     /* the source nickname does not match with connexion nickname */

+       if(strcmp(source_nick,dest_nick))
+               goto leave;                     /* drop private messages send to yourself */
+
  #if 1
  #warning code disabled (useful ?)
  #else

Dirk Rieger <hhgoth>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

 

 

No changes have been made to this item

Back to the top


Powered by Savane 3.7