marking.c
changeset 31 55395c6ef7ea
parent 30 48213f7bb577
child 34 1820e2dc90ef
equal deleted inserted replaced
30:48213f7bb577 31:55395c6ef7ea
   136 		} else {
   136 		} else {
   137 			marked_jids = g_slist_append (marked_jids, jid);
   137 			marked_jids = g_slist_append (marked_jids, jid);
   138 			marked      = 1;
   138 			marked      = 1;
   139 			jfree       = FALSE;
   139 			jfree       = FALSE;
   140 		}
   140 		}
   141 	}
   141 	} else
       
   142 		scr_log_print (LPRINT_NORMAL, "Unknown subcommand.");
   142 
   143 
   143 	len = g_slist_length(marked_jids);
   144 	len = g_slist_length(marked_jids);
   144 	if (marked == 1) {
   145 	if (marked == 1) {
   145 		scr_write_incoming_message (jid, "Marked", 0,
   146 		scr_write_incoming_message (jid, "Marked", 0,
   146 					    HBB_PREFIX_INFO|HBB_PREFIX_NOFLAG, 0);
   147 					    HBB_PREFIX_INFO|HBB_PREFIX_NOFLAG, 0);
   199 		for (mel = marked_jids; mel; mel = mel->next)
   200 		for (mel = marked_jids; mel; mel = mel->next)
   200 			g_free (mel->data);
   201 			g_free (mel->data);
   201 
   202 
   202 		g_slist_free (marked_jids);
   203 		g_slist_free (marked_jids);
   203 		marked_jids = NULL;
   204 		marked_jids = NULL;
       
   205 
       
   206 		scr_log_print (LPRINT_NORMAL, "List cleared.  No marked JIDs.");
   204 
   207 
   205 	} else if (!strcmp (cmd, "do")) {
   208 	} else if (!strcmp (cmd, "do")) {
   206 		char *format = args[1];
   209 		char *format = args[1];
   207 
   210 
   208 		if (!format)
   211 		if (!format)
   240 					process_command (command, TRUE);
   243 					process_command (command, TRUE);
   241 					g_free (command);
   244 					g_free (command);
   242 				}
   245 				}
   243 			}
   246 			}
   244 		}
   247 		}
   245 	}
   248 	} else
       
   249 		scr_log_print (LPRINT_NORMAL, "Unknown subcommand.");
   246 
   250 
   247 	free_arg_lst (args);
   251 	free_arg_lst (args);
   248 }
   252 }
   249 
   253 
   250 void marking_init (void)
   254 void marking_init (void)