1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-25 21:26:38 +02:00
Files
unrealircd/include
Bram Matthys 8603c2eb71 Update hunt_server() so command is really the command (eg "LUSERS") and
not a format string (eg ":%s LUSERS %s"). It now simply concats all parv[]'s.
That is, up to parc count. And it automatically does the :stuff for the
last parameter if it contains spaces or starts with a : etc.

This gets rid of a bit sketchy code with an arbitrary maximum etc.

Now it's just:
if (hunt_server(client, NULL, "REHASH", 1, parc, parv) != HUNTED_ISME)
	return;

This has one side effect, though:
Previously we used the format string, so it may be possible for S2S
traffic to now have more arguments then before here and there.
Eg:
* It could be that the caller was using a format string to
  intentionally cut off an extra parameter at the end.
  You can still do that if you call with eg parc-1 instead of parc.
  I don't think there were any such cases though, but hard to rule out.
* Extranous parameters may show up in S2S traffic where it was
  previously unexpected.
2021-09-25 14:49:19 +02:00
..
2021-09-25 10:24:32 +02:00
2021-09-13 18:44:18 +02:00
2002-02-16 20:15:41 +00:00
2021-09-23 19:21:19 +02:00
2000-02-28 22:45:44 +00:00
2004-05-13 16:39:23 +00:00