Browse Source

New module gecos_replace: enables replacing text in the gecos field on-connect

Wazakindjes 1 year ago
parent
commit
4fef970fb4
1 changed files with 17 additions and 0 deletions
  1. 17 0
      man/gecos_replace.md

+ 17 - 0
man/gecos_replace.md

@@ -0,0 +1,17 @@
+# gecos\_replace
+Requested by `TimeRider`, this module allows you to e.g. replace a Mibbit user's real name/gecos (`http://www.mibbit.com`) with something else.
+
+I don't foresee many people needing this, so the module functionality is pretty basic at the moment. For example: the match is a literal match, you __can't__ use wildcards (`*something*`).
+
+__Config block:__
+    gecos-replace {
+    	match "http://www.mibbit.com";
+    	replace "";
+    };
+
+    gecos-replace {
+    	match "ayy";
+    	replace "lmao";
+    };
+
+In case of the Mibbit example the entire gecos is just their URL, so because we're replacing it with nothing (effectively erasing the text) it will instead become the user's on-connect nick. Some Unreal core code (and perhaps the client?) most likely depends on it being non-NULL and having a length of 1 or more. I think the gecos is also specified as required in em RFC. =]