Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hunt_server() with wildcard hits wrong server #44

Open
df7cb opened this issue Nov 30, 2016 · 4 comments
Open

hunt_server() with wildcard hits wrong server #44

df7cb opened this issue Nov 30, 2016 · 4 comments

Comments

@df7cb
Copy link
Member

df7cb commented Nov 30, 2016

/quote shedding quantum* 60 0 :Server maintenance
!oxygen User shedding ENABLED by Myon ([email protected]); interval: 60 seconds, opers: no, reason: "Server maintenance" [helix]
/quote shedding quantum* off
!oxygen User shedding DISABLED by Myon ([email protected]) [helix]
/quote shedding quantum.oftc.net 60 0 :Server maintenance
!quantum User shedding ENABLED by Myon ([email protected]); interval: 60 seconds, opers: no, reason: "Server maintenance" [helix]
@df7cb df7cb changed the title SHEDDING with wildcard hits wrong server hunt_server() with wildcard hits wrong server Nov 30, 2016
@df7cb
Copy link
Member Author

df7cb commented Nov 30, 2016

More weirdness:

/motd kin* -> oxygen
/motd kinetic* -> helix
/motd kinetic.o* -> kinetic

@df7cb
Copy link
Member Author

df7cb commented Nov 30, 2016

So thanks to rnowak and me continuing to wtf over some code bits, we found the explanation: There is a user QuantumBot connected to oxygen, and a user kineticrootkit[m] connected to helix which made hunt_server find the user first before applying the wildcard to server names.

We should fix that to look at server names first, or remove the user lookups alltogether in the places where it doesn't make much sense (shedding, motd, ?).

@cryogen
Copy link
Contributor

cryogen commented Nov 30, 2016

That's just kind of the way it works. It's always better to use fully qualified names instead of wild cards when doing remote commands

@Adam-
Copy link
Contributor

Adam- commented Nov 30, 2016

FWIW seems upstream already has this https://github.com/ircd-hybrid/ircd-hybrid/blob/master/src/server.c#L186-L217

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants