Ping: unfriendly error on temp ban
Kcchouette opened this issue · 1 comments
Kcchouette commented
Json
./dcping ping "dchub://ptokax-alpha.czdc.org:6891"
{"name":"U PePKa","desc":"PePeK's CzDC @ PtokaX Test Hub.px.","addr":["dchub://ptokax-alpha.czdc.org:6891","dchub://PePeK.CzDC.org:4861"],"soft":{"name":"PtokaX","vers":"0.5.2.2","ext":["NoHello","UserCommand","UserIP2","BotINFO","HubINFO"]},"users":228,"share":118156885255439}
XML
./dcping ping "dchub://ptokax-alpha.czdc.org:6891" --out xml
2019/03/14 18:55:12 nmdc: chat message, got command
<Hub Name="" Address="dchub://ptokax-alpha.czdc.org:6891" Status="Error" ErrCode="0"></Hub>
dennwc commented
The hub temporary bans the pinger for 1 hour if you ping it twice, hence the error.
Still, need to make the error message clear.