Changeset 5760:8ecfc415d2ab in roaraudio


Ignore:
Timestamp:
11/20/12 17:08:37 (11 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

corrected handling of notify in case client died.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/roard/protocol-irc.c

    r5617 r5760  
    402402 size_t count; 
    403403 struct channel * c; 
    404  char * text = quit_msg; 
     404 const char * text = quit_msg; 
    405405 int client = event->target; 
    406406 const char * ufull = get_ufull(client); 
     
    409409 (void)core, (void)userdata; 
    410410 
    411  if ( text == NULL ) { 
     411 if ( text == NULL ) 
    412412  text = "Client deleted. Died, kicked or internal error."; 
    413  } 
    414  
    415  put_printf(client, "ERROR :Closing Link: %s (Quit: %s)\n", ufull, text); 
    416  
    417   count = get_listener_list(client, NULL, &listener); 
    418   for (; count; count--, listener++) 
    419    put_printf(*listener, ":%s QUIT :Quit: %s\n", ufull, text); 
     413 
     414 if ( quit_msg != NULL ) 
     415  put_printf(client, "ERROR :Closing Link: %s (Quit: %s)\n", ufull, text); 
     416 
     417 count = get_listener_list(client, NULL, &listener); 
     418 for (; count; count--, listener++) 
     419  put_printf(*listener, ":%s QUIT :Quit: %s\n", ufull, text); 
    420420 
    421421 for (i = 0; i < MAX_CHANNELS; i++) { 
Note: See TracChangeset for help on using the changeset viewer.