You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@RoLex apart same question can be asked (how can I deal with hub owner if my ip range is ban?), here the goal is to avoid to have a python error and catch somewhat the ban option with custom dcping error code
pinger is not aware of ban, there is also no special nmdc (atleast) protocol command that tells about ban and the reason. what pinger have done here is that it got suddenly disconnected (before receiving $hubinfo) from the hub and what it shows to you is the last message it received before disconnect. in nmdc it is possible to detect "bad password", "nick taken" or "redirected", but not "you are banned". the only solution here would be to pick known keywords from last message. that is exactly why dcping shows you this message, so your script can continue working with given text.
I agree with @Kcchouette, even though there are no code indicating the ban, the pinger should properly deal with it and fake the "banned" error message.
We already have a few hub-specific workarounds like this in the code, adding one more special case is not a big deal. From what I can see, the last message contains _rangeban_, which can be used to easily detect it.
Re: python, there is no Python in the project, but I know Kcc uses dcping with a python wrapper by parsing the JSON from the pinger.
dcping v0.26.0
It seems like a range ip that is banned, maybe can you deal with that?
The text was updated successfully, but these errors were encountered: