diff options
author | Riccardo Spagni <ric@spagni.net> | 2019-03-04 14:58:04 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2019-03-04 14:58:04 +0200 |
commit | 194c4c0bcb9f308e7e5543bd06b829eb8dea38df (patch) | |
tree | 1c8661ec9349c295b7842a5f1bfc0031eef12788 /src/common | |
parent | Merge pull request #5126 (diff) | |
parent | Print the reason why a notification spec failed to parse (diff) | |
download | monero-194c4c0bcb9f308e7e5543bd06b829eb8dea38df.tar.xz |
Merge pull request #5128
a17da720 Print the reason why a notification spec failed to parse (moneromooo-monero)
356d8137 blockchain: include number of discarded blocks in --reorg-notify (moneromooo-monero)
4d598e3d core: add a few more block rate window sizes (moneromooo-monero)
d4fb9641 core: add --block-rate-notify (moneromooo-monero)
28b6dbf2 notify: fix tokenizing being too strict (moneromooo-monero)
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/notify.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/notify.cpp b/src/common/notify.cpp index c3165fb05..e2df5096d 100644 --- a/src/common/notify.cpp +++ b/src/common/notify.cpp @@ -48,7 +48,7 @@ Notify::Notify(const char *spec) { CHECK_AND_ASSERT_THROW_MES(spec, "Null spec"); - boost::split(args, spec, boost::is_any_of(" ")); + boost::split(args, spec, boost::is_any_of(" \t"), boost::token_compress_on); CHECK_AND_ASSERT_THROW_MES(args.size() > 0, "Failed to parse spec"); if (strchr(spec, '\'') || strchr(spec, '\"') || strchr(spec, '\\')) MWARNING("A notification spec contains a quote or backslash: note that these are handled verbatim, which may not be the intent"); |