1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

signal_stop_by_name() didn't work

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@251 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-05-29 17:10:22 +00:00 committed by cras
parent 93173356bb
commit 329fbd3ee8

View File

@ -289,8 +289,10 @@ void signal_stop(void)
void signal_stop_by_name(const char *signal)
{
SIGNAL_REC *rec;
int signal_id;
rec = g_hash_table_lookup(signals, signal);
signal_id = module_get_uniq_id_str("signals", signal);
rec = g_hash_table_lookup(signals, GINT_TO_POINTER(signal_id));
if (rec == NULL)
g_warning("signal_stop_by_name() : unknown signal \"%s\"", signal);
else if (rec->emitting <= rec->stop_emit)