patchDcHub: Hub software for Direct Connect - Patches: patch #2273, -ban banlist entry is removed when...

 
 

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

patch #2273: -ban banlist entry is removed when using -kick

Submitter:  Dirk Rieger <hhgoth>
Submitted:  Mon 10 Nov 2003 07:36:37 AM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  blusseau Open/Closed:  Closed

Thu 20 Nov 2003 12:50:37 PM UTC, comment #3: 

the dots inside the -ban message for this patch are not needed - just causing another useless message

Dirk Rieger <hhgoth>
Wed 19 Nov 2003 09:24:07 AM UTC, comment #2: 

...the line

temp_ban*=60;

has to be removed from the patch - this is done by the ban-command itself ;)

Dirk Rieger <hhgoth>
Mon 10 Nov 2003 08:02:50 AM UTC, comment #1: 

where's a failure in the process_ucmd.c patch...

* ../../dchub-0.5.2_CVS/src/process_ucmd.c Mon Nov  3 13:45:19 2003
--- process_ucmd.c   Mon Nov 10 08:22:00 2003
*************
* 443,452 **
   if(t!=NULL)
   {
      GString *query;
      *t='\0';
-
      /* translate the command into hub command */
      query=g_string_new("");
      if(silent_kick==0)
         g_string_sprintf(query,"<> -kick \"\" ...|",luce->user_nick->str,wanted_nick);
      else
--- 443,459 ----
   if(t!=NULL)
   {
      GString *query;
+     int temp_ban=0;
      *t='\0';
      /* translate the command into hub command */
      query=g_string_new("");
+
+     if (db_int_get("KICKTEMPBAN", &temp_ban))
+     {
+        temp_ban*=60;  /* convert the duration in second */
+        g_string_sprintf(query,"<> -ban 0 \"\" ...|",luce->user_nick->str,temp_ban,wanted_nick);
+        process_hub_command(luce,query->str);
+     }
      if(silent_kick==0)
         g_string_sprintf(query,"<> -kick \"\" ...|",luce->user_nick->str,wanted_nick);
      else

Dirk Rieger <hhgoth>
Mon 10 Nov 2003 07:36:37 AM UTC, original submission:  

when using the command combination of -ban and -kick for an user, the -kick command overwrites the prior banlist-entry

modified so -kick is just disconnecting and splitted $Kick to process -ban and -kick using the KICKTEMPBAN value

Dirk Rieger <hhgoth>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #6505:  patch_item_2273.patch added by hhgoth (2KiB - text/plain - patch item 2273)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2003-11-28 blusseau StatusNone Done
    Assigned toNone blusseau
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.13-0329.
Corresponding source code