Page 1 of 1
Gecos Replace don't replace
Posted: Sat May 11, 2024 9:06 am
by David
As the title suggests, the gecos_replace module does not change the user's real name. Both with the mibbit client example, but also with other words (I don't use wildcards). I'm using Unrealircd 6.1.5, wondering if others using this module have the same problem.
Installed version 1.1.0
loadmodule "third/gecos_replace";
gecos-replace {
match "
http://blablabla.com";
replace "
https://something.net";
};
Thank you
Re: Gecos Replace don't replace
Posted: Sat May 11, 2024 9:13 am
by DonTCry
Hello David,
This module did stop working since Unrealircd 6 release, module creator has been notified but maybe he has been busy and hasn't updated/fixed to work with the latest UnrealIRCd versions.
Re: Gecos Replace don't replace
Posted: Sat May 11, 2024 10:10 am
by David
thanks for the reply DonTCry, so waiting for an update
Re: Gecos Replace don't replace
Posted: Thu May 16, 2024 5:37 pm
by Gottem
DonTCry wrote: Sat May 11, 2024 9:13 am
Hello David,
module creator has been notified
So where was this notification posted, since I don't remember ever having seen anything?
Anyway, I just tested with the current 6.x-git and it replaces the gecos just fine. I think the problem you 2 are having is that while the
match is case-insensitive, the actual replacement isn't. Which of course is pretty stupid, so
I fixed that.
Re: Gecos Replace don't replace
Posted: Thu May 16, 2024 7:47 pm
by David
Thanks Gottem, I upgraded but it still doesn't work, I don't use **
I also tested the mibbit example, and it doesn't work.
gecos-replace {
match "
http://www.mibbit.com";
replace "WebUser";
};
Re: Gecos Replace don't replace
Posted: Fri May 17, 2024 5:22 pm
by Gottem
Are you certain the value for the "match" is actually correct? I just tried connecting to my own server via chat.mibbit.com and it doesn't even use "
http://www.mibbit.com" as the gecos (anymore), so of course it isn't going to be able to replace anything. Examples are just to show how to use something, that doesn't mean they will always work as-is. You're still expected to think about what you're doing. Perhaps you aren't even looking at the gecos?
Re: Gecos Replace don't replace
Posted: Fri May 17, 2024 10:09 pm
by David
Yes, I checked and it uses
http://www.mibbit.com
Host:
[email protected].*.*
Real name:
http://www.mibbit.com
I've tried everything but it doesn't change it, I checked otherwise I wouldn't write. You must generate your own mibbit widget (
https://widget.mibbit.com) not via chat.mibbit.com
example:
https://widget.mibbit.com/?&server=irc. ... tPass=true
Re: Gecos Replace don't replace
Posted: Sun May 19, 2024 9:05 am
by Gottem
Well even with that widget it still doesn't use the mibbit.com URL as gecos. Anyway, you should probably replace:
With:
So single quotes instead of double, otherwise Unreal might download the URL and use its HTML contents for the match and not the URL itself.