summaryrefslogtreecommitdiff
path: root/src/plugins/trigger/trigger.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2021-04-10 12:21:16 +0200
committerSébastien Helleu <flashcode@flashtux.org>2021-04-10 12:21:16 +0200
commit937ecb62c47775f22a929b7ae43d80588fe19806 (patch)
treee4afed852309b72cdb9fb7d89220713a50211646 /src/plugins/trigger/trigger.c
parent2e67b13edd5010a0b90398207caaad27ae7665fd (diff)
downloadweechat-937ecb62c47775f22a929b7ae43d80588fe19806.zip
trigger: remove useless test
Diffstat (limited to 'src/plugins/trigger/trigger.c')
-rw-r--r--src/plugins/trigger/trigger.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/plugins/trigger/trigger.c b/src/plugins/trigger/trigger.c
index 24e023078..3b3885161 100644
--- a/src/plugins/trigger/trigger.c
+++ b/src/plugins/trigger/trigger.c
@@ -678,8 +678,6 @@ trigger_regex_split (const char *str_regex,
length_delimiter = strlen (delimiter);
ptr_regex = pos;
- if (!ptr_regex[0])
- goto format_error;
/* search the start of replacement string */
pos_replace = strstr (ptr_regex, delimiter);