X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_callerid.cpp;h=49143034f570ea8a4d0ef58affbe83262db8e7c5;hb=9b25df31096f889e3653ab100493133014d4fe73;hp=40cbc3506f4f325fd5012f86ce71d8d16c829a7d;hpb=9dab477dadb5d65be1eee584d37f1622b6a396c0;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_callerid.cpp b/src/modules/m_callerid.cpp index 40cbc3506..49143034f 100644 --- a/src/modules/m_callerid.cpp +++ b/src/modules/m_callerid.cpp @@ -99,7 +99,7 @@ struct CallerIDExtInfo : public ExtensionItem irc::commasepstream s(value); std::string tok; if (s.GetToken(tok)) - dat->lastnotify = ConvToInt(tok); + dat->lastnotify = ConvToNum(tok); while (s.GetToken(tok)) { @@ -179,7 +179,7 @@ public: extInfo(Creator) { allow_empty_last_param = false; - syntax = "*|(+|-)[,(+|-) ...]"; + syntax = "*|(+|-)[,(+|-)]+"; TRANSLATE1(TR_CUSTOM); } @@ -189,7 +189,7 @@ public: if (parameter.find(',') != std::string::npos) return; - // Convert a [+|-] into a [-] + // Convert a (+|-) into a [-] ACCEPTAction action = GetTargetAndAction(parameter); if (!action.first) return;