Gecos Replace don't replace

Looking for a module? Or want to see one converted to 6.x?

Moderator: Supporters

Post Reply
David
Posts: 9
Joined: Sat Nov 05, 2022 9:27 am
Contact:

Gecos Replace don't replace

Post 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
DonTCry
Posts: 51
Joined: Mon Feb 06, 2012 6:01 pm
Contact:

Re: Gecos Replace don't replace

Post 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.
David
Posts: 9
Joined: Sat Nov 05, 2022 9:27 am
Contact:

Re: Gecos Replace don't replace

Post by David »

thanks for the reply DonTCry, so waiting for an update
Gottem
UnrealIRCd coder
Posts: 194
Joined: Fri Aug 19, 2016 5:26 pm
Location: NL

Re: Gecos Replace don't replace

Post 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.
If you like my modules, consider donating (credit card or iDEAL, use the custom job fee option in my shop) ;];]
David
Posts: 9
Joined: Sat Nov 05, 2022 9:27 am
Contact:

Re: Gecos Replace don't replace

Post 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";
};
Gottem
UnrealIRCd coder
Posts: 194
Joined: Fri Aug 19, 2016 5:26 pm
Location: NL

Re: Gecos Replace don't replace

Post 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?
If you like my modules, consider donating (credit card or iDEAL, use the custom job fee option in my shop) ;];]
David
Posts: 9
Joined: Sat Nov 05, 2022 9:27 am
Contact:

Re: Gecos Replace don't replace

Post 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
Gottem
UnrealIRCd coder
Posts: 194
Joined: Fri Aug 19, 2016 5:26 pm
Location: NL

Re: Gecos Replace don't replace

Post by Gottem »

Well even with that widget it still doesn't use the mibbit.com URL as gecos. Anyway, you should probably replace:

Code: Select all

match "http://www.mibbit.com";
With:

Code: Select all

match 'http://www.mibbit.com';
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.
If you like my modules, consider donating (credit card or iDEAL, use the custom job fee option in my shop) ;];]
Post Reply