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:
parent
93173356bb
commit
329fbd3ee8
@ -289,8 +289,10 @@ void signal_stop(void)
|
|||||||
void signal_stop_by_name(const char *signal)
|
void signal_stop_by_name(const char *signal)
|
||||||
{
|
{
|
||||||
SIGNAL_REC *rec;
|
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)
|
if (rec == NULL)
|
||||||
g_warning("signal_stop_by_name() : unknown signal \"%s\"", signal);
|
g_warning("signal_stop_by_name() : unknown signal \"%s\"", signal);
|
||||||
else if (rec->emitting <= rec->stop_emit)
|
else if (rec->emitting <= rec->stop_emit)
|
||||||
|
Loading…
Reference in New Issue
Block a user