mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 01:43:36 +01:00
16 lines
443 B
C
16 lines
443 B
C
|
#include "config.h"
|
||
|
#include <ccan/tal/str/str.h>
|
||
|
#include <common/plugin.h>
|
||
|
|
||
|
bool is_asterix_notification(const char *notification_name, const char *subscription)
|
||
|
{
|
||
|
bool is_special;
|
||
|
/* Asterisk is magic "all", and log notification
|
||
|
* is a special notification that must be turn on
|
||
|
* only if requested. */
|
||
|
is_special = streq(subscription, "*") && !streq(notification_name, "log");
|
||
|
if (is_special)
|
||
|
return true;
|
||
|
return false;
|
||
|
}
|