Browse Source

For all modules: added a license/credits thingy at ze top and cleaned up unused variables xd

Wazakindjes 11 months ago
parent
commit
ed387f53bf
66 changed files with 410 additions and 82 deletions
  1. 2 2
      README.md
  2. 9 3
      br0ken/m_modmgmt.c
  3. 6 0
      br0ken/m_redirectplain.c
  4. 7 1
      br0ken/m_splitriders.c
  5. 6 1
      br0ken/m_wiimmfi_dsplaza.c
  6. 6 0
      malv/m_holidays.c
  7. 6 0
      malv/m_mshun.c
  8. 6 0
      malv/m_otkl.c
  9. 6 0
      malv/m_sajoin_chan.c
  10. 6 0
      malv/m_saprivmsg.c
  11. 7 1
      spec/m_block_nosslident.c
  12. 6 0
      spec/m_mafiareturns.c
  13. 6 0
      spec/m_nicksuffix.c
  14. 6 0
      spec/m_signore.c
  15. 6 2
      u4/m_allowctcp_opers.c
  16. 6 0
      u4/m_anti_amsg.c
  17. 6 0
      u4/m_anticaps.c
  18. 7 1
      u4/m_auditorium.c
  19. 6 0
      u4/m_autojoin_byport.c
  20. 6 1
      u4/m_autovhost.c
  21. 6 0
      u4/m_banfix_voice.c
  22. 8 0
      u4/m_block_masshighlight.c
  23. 9 1
      u4/m_chansno.c
  24. 7 3
      u4/m_clearlist.c
  25. 6 1
      u4/m_clones.c
  26. 6 0
      u4/m_commandsno.c
  27. 7 4
      u4/m_denyban.c
  28. 7 1
      u4/m_extwarn.c
  29. 7 11
      u4/m_fantasy.c
  30. 8 2
      u4/m_forward.c
  31. 6 0
      u4/m_getlegitusers.c
  32. 6 8
      u4/m_git.c
  33. 6 0
      u4/m_joinmute.c
  34. 6 0
      u4/m_kickjoindelay.c
  35. 6 0
      u4/m_listrestrict.c
  36. 6 0
      u4/m_message_commonchans.c
  37. 7 3
      u4/m_netadmins.c
  38. 6 0
      u4/m_nick_minlen.c
  39. 6 1
      u4/m_noghosts.c
  40. 6 0
      u4/m_noinvite.c
  41. 6 0
      u4/m_operpasswd.c
  42. 6 0
      u4/m_plainusers.c
  43. 6 0
      u4/m_pmdelay.c
  44. 6 0
      u4/m_pmlist.c
  45. 6 0
      u4/m_rmtkl.c
  46. 6 0
      u4/m_rtkl.c
  47. 6 0
      u4/m_sacmds.c
  48. 6 0
      u4/m_securequery.c
  49. 6 1
      u4/m_storetkl.c
  50. 6 0
      u4/m_timedbans.c
  51. 6 0
      u4/m_tklexcept.c
  52. 6 0
      u4/m_uline_nickhost.c
  53. 6 0
      u4/m_uniquemsg.c
  54. 6 0
      u4/m_websocket_restrict.c
  55. 7 2
      uncommon/m_bancheck_access.c
  56. 6 0
      uncommon/m_blocknossl.c
  57. 7 9
      uncommon/m_confprot.c
  58. 6 0
      uncommon/m_debug.c
  59. 6 0
      uncommon/m_fixhop.c
  60. 7 6
      uncommon/m_md5fjert.c
  61. 6 0
      uncommon/m_portsifresi.c
  62. 6 0
      uncommon/m_pubnetinfo.c
  63. 6 0
      uncommon/m_rehashgem.c
  64. 6 7
      uncommon/m_repeatprot.c
  65. 6 0
      uncommon/m_textshun.c
  66. 3 10
      uncommon/m_tkl.c

+ 2 - 2
README.md

@@ -71,7 +71,7 @@ This README contains all modules and their descriptions/usage info (ordered from
 | [m_plainusers](#m_plainusers)									| Allows opers to list all users __NOT__ connected over SSL/TLS																		|
 | [m_uniquemsg](#m_uniquemsg)									| Implements chmode `+U` to prevent people from repeating messages																	|
 | [m_pmlist](#m_pmlist)											| Implements umode `+P` to only allow only certain people to privately message you													|
-| [m_sacmds](#m_sacmds)											| Implements `SA*` commands for privileged opers																					|
+| [m_sacmds](#m_sacmds)											| Implements `SA*` commands for privileged opers as well as an accompanying snomask `+A`											|
 | [m_storetkl](#m_storetkl)										| Store TKL entries persistently across IRCd restarts																				|
 | [m_auditorium](#m_auditorium)									| Channel mode `+u` to show channel events/messages to/from people with `+o`/`+a`/`+q` only											|
 | [m_uline_nickhost](#m_uline_nickhost)							| Requires people to address services like `NickServ@services.my.net`																|
@@ -1167,7 +1167,7 @@ __Probably doesn't work with Wind0ngs__
 
 This module allows easy installation and updating of modules from git through an IRC command. It requires access to a shell/pipe and the commands "make" and "git" (so may not work on Wind0ngs). The paths you can feed it may __NOT__ start with a slash, and are always relative to `$HOME`. Also requires you to have the privilege `git` in yo opercla$$. =]
 
-Oh yeah, it also throws a SNO_EYES snomask to notify IRC opers of the command usage. Every server it ran on returns one line of output regarding its success as well.
+Oh yeah, it also throws a `SNO_EYES` snomask to notify IRC opers of the command usage. Every server it ran on returns one line of output regarding its success as well.
 
 __Syntax:__
 `GIT INSTALL <Unreal source path> <build/tmp folder> <git clone URL> [-global]`

+ 9 - 3
br0ken/m_modmgmt.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 
@@ -169,14 +175,14 @@ int _modmgmt_main(char *command, aClient *cptr, aClient *sptr, int parc, char *p
 	** So "MODLOAD test" would result in parc = 2 and parv[1] = "test"
 	** Also, parv[0] seems to always be NULL, so better not rely on it fam
 	*/
-	aClient *acptr; // To find servers to send to if not -local
+	//aClient *acptr; // To find servers to send to if not -local
 	Module *mi; // Find existing module handles yo
 	int local; // "Boolean" for -local
 	int i; // Iter8or
 	char *err; // Error message
 	char *type; // Type of command (load/unload/reload)
 	char *name; // Cleaned module name (e.g. third/m_confprot => m_confprot)
-	char *file; // Original relative path thingy (for rel0ads)
+	//char *file; // Original relative path thingy (for rel0ads)
 	int retU; // Return value for unloading
 	char *retL; // Return value for loading
 	char *retHook; // Return value for "rehashing"
@@ -411,7 +417,7 @@ char *runnemHewks(char *name, char *fullname, aClient *sptr, int reload) {
 					errors++;
 					break;
 				}
-				int used = 0; // Known directive check
+				//int used = 0; // Known directive check
 				int errs = 0; // Error count of below function
 				int value = (*(h->func.intfunc))(cfptr, ce, CONFIG_MAIN, &errs);
 				if(value == 2)

+ 6 - 0
br0ken/m_redirectplain.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 

+ 7 - 1
br0ken/m_splitriders.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 
@@ -158,7 +164,7 @@ static int splitriders_override_sjoin(Cmdoverride *ovr, aClient *cptr, aClient *
 			//	sendnotice(lewaza, "KICKIN EM: %s", acptr->name);
 
 			//sendto_one(cptr, ":%s KICK %s %s :Splitrider", me.name, chptr->chname, acptr->name);
-			//char buf[BUFSIZE + 1];
+			//char buf[BUFSIZE];
 			//snprintf(buf, BUFSIZE, ":%s KICK %s %s :Splitrider\r\n", me.name, chptr->chname, acptr->name);
 			//deliver_it(cptr, buf, strlen(buf));
 

+ 6 - 1
br0ken/m_wiimmfi_dsplaza.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 #include "unrealircd.h"
 
 #define MSG_SETKEY "SETCKEY"
@@ -180,7 +186,6 @@ CMD_FUNC(wiimmfi_getkey) {
 	char channel[33];
 	char cookie[33];
 	char retries[4];
-	char outbuf[BUFSIZE];
 	char *key, *keyname, *keybuf, *p;
 	aChannel *chptr;
 

+ 6 - 0
malv/m_holidays.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 

+ 6 - 0
malv/m_mshun.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 

+ 6 - 0
malv/m_otkl.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 

+ 6 - 0
malv/m_sajoin_chan.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 

+ 6 - 0
malv/m_saprivmsg.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 

+ 7 - 1
spec/m_block_nosslident.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 
@@ -165,4 +171,4 @@ int block_nosslident_prelocalconnect(aClient *sptr) {
 		return exit_client(sptr, sptr, sptr, "Illegal ident"); // Kbye
 	}
 	return 0; // We good
-}
+}

+ 6 - 0
spec/m_mafiareturns.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 

+ 6 - 0
spec/m_nicksuffix.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 

+ 6 - 0
spec/m_signore.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 

+ 6 - 2
u4/m_allowctcp_opers.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 
@@ -146,7 +152,6 @@ void override_md_free(ModData *md) {
 
 void check_stale_overrides(aClient *sptr) {
 	int ping; // Expiration time is the same as ping timeouts ;]
-	time_t nao; // Current time
 	cOverride *covrList, *covr, *next; // Sum iter8ors lol
 	if(!sptr || !sptr->local) // r u insaiyan?
 		return;
@@ -157,7 +162,6 @@ void check_stale_overrides(aClient *sptr) {
 		#else
 			ping = (sptr->local->class ? sptr->local->class->pingfreq : iConf.handshake_timeout);
 		#endif
-		nao = TStime();
 		for(covr = covrList; covr; covr = next) { // Iterate em lol
 			next = covr->next; // Next one imo
 			if(ping > (TStime() - sptr->local->lasttime)) // Still good

+ 6 - 0
u4/m_anti_amsg.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 

+ 6 - 0
u4/m_anticaps.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 

+ 7 - 1
u4/m_auditorium.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 
@@ -122,4 +128,4 @@ char *auditorium_hook_prechanmsg(aClient *sptr, aChannel *chptr, char *text, int
 		return NULL; // Then fuck off =]
 	}
 	return text;
-}
+}

+ 6 - 0
u4/m_autojoin_byport.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 

+ 6 - 1
u4/m_autovhost.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 
@@ -108,7 +114,6 @@ char *replaceem(char *str, char *search, char *replace) {
 
 int autovhost_configtest(ConfigFile *cf, ConfigEntry *ce, int type, int *errs) {
 	int errors = 0; // Error count
-	int i; // Iterat0r
 	ConfigEntry *cep; // To store the current variable/value pair etc
 
 	// Since we'll add a top-level block to unrealircd.conf, need to filter on CONFIG_MAIN lmao

+ 6 - 0
u4/m_banfix_voice.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 #include "unrealircd.h"
 
 // Quality fowod declaration

+ 8 - 0
u4/m_block_masshighlight.c

@@ -1,3 +1,11 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+**
+** Contains edits by k4be to make the threshold checking more robust
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 

+ 9 - 1
u4/m_chansno.c

@@ -1,3 +1,11 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+**
+** Contains edits by jesopo to implement notices for HOOKTYPE_TKL_ADD
+*/
+
 #include "unrealircd.h"
 
 typedef struct _conf_operflag OperFlag;
@@ -547,7 +555,7 @@ int chansno_hook_spamfilter(aClient *acptr, char *str, char *str_in, int type, c
 }
 
 static int chansno_override_oper(Cmdoverride *ovr, aClient *cptr, aClient *sptr, int parc, char *parv[]) {
-	int	ret, i;
+	int ret;
 	char *operclass;
 	ConfigItem_oper *oper;
 

+ 7 - 3
u4/m_clearlist.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 
@@ -120,7 +126,7 @@ CMD_FUNC(m_clearlist) {
 	char remflags[MAXMODEPARAMS], *remstr[MAXPARA]; // Some buffers to store flags and masks to remove
 	size_t remlen; // Keep track of all masks' lengths =]
 	aChannel *chptr; // Pointer to channel m8
-	int strcount, del, i; // Keep track of mask counts to do shit like -bbb, also "boolean" to actually delete the list entry
+	int strcount, i; // Keep track of mask counts to do shit like -bbb, also "boolean" to actually delete the list entry
 	int tainted, dountaint; // Keep track of whether the current entry is tainted (like ham@*)
 
 	if(BadPtr(parv[1])) // If first argument is a bad pointer, don't proceed
@@ -189,7 +195,6 @@ CMD_FUNC(m_clearlist) {
 
 		// Loop over all entries in the current list
 		for(ban = *muhList; ban; ban = bnext) {
-			del = 0; // Set "boolean" to 0
 			tainted = 0; // Not tainted yet
 			bnext = ban->next; // Already get the next entry here, since we may delete the current one
 			// Does the entry's mask match the given arg? (match() does bighek with wildcards)
@@ -201,7 +206,6 @@ CMD_FUNC(m_clearlist) {
 				remflags[strcount + 1] = flag; // Add this flag to our remflags array
 				remstr[strcount] = ban->banstr; // Gotta dup 'em for do_cmd cuz inb4rip =]
 				strcount++; // Increment strcount later cuz muh first char = index 0
-				del = 1; // Set dat boolean so we can delete this entry at the end of this iteration
 				remlen += strlen(ban->banstr); // Increment em lol
 			}
 

+ 6 - 1
u4/m_clones.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 
@@ -79,7 +85,6 @@ static char *clones_halp[] = {
 
 CMD_FUNC(m_clones) {
 	aClient *acptr, *acptr2;
-	int i, j;
 	u_int min, count, found = 0;
 
 	if(!IsPerson(sptr))

+ 6 - 0
u4/m_commandsno.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 

+ 7 - 4
u4/m_denyban.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 
@@ -152,7 +158,6 @@ char *replaceem(char *str, char *search, char *replace) {
 
 int denyban_configtest(ConfigFile *cf, ConfigEntry *ce, int type, int *errs) {
 	int errors = 0; // Error count
-	int i; // Iterat0r
 	ConfigEntry *cep; // To store the current variable/value pair etc
 
 	// Since we'll add a top-level block to unrealircd.conf, need to filter on CONFIG_MAIN lmao
@@ -312,7 +317,7 @@ int denyban_rehash(void) {
 // Hecks
 static int denyban_modeoverride(Cmdoverride *ovr, aClient *cptr, aClient *sptr, int parc, char *parv[]) {
 	aChannel *chptr; // Channel pointer
-	int fc, mc, cc; // Flag count, mask count and char count respectively
+	int fc, mc; // Flag count, mask count and char count respectively
 	int i, j; // Just s0em iterators fam
 	int stripped; // Count 'em
 	int skip[MAXPARA + 1]; // Skippem
@@ -322,7 +327,6 @@ static int denyban_modeoverride(Cmdoverride *ovr, aClient *cptr, aClient *sptr,
 	char *newparv[MAXPARA + 1]; // Ditto for masks etc
 	char c; // Current flag lol, can be '+', '-' or any letturchar
 	char curdir; // Current direction (add/del etc)
-	char *p; // To check the non-wildcard length shit
 	char *tmp; // Store a "raw" mask
 	char *tmpmask; // After cleaning it
 	char *mask; // Have to store it agen so it doesn't get fukt lol (sheeeeeit)
@@ -352,7 +356,6 @@ static int denyban_modeoverride(Cmdoverride *ovr, aClient *cptr, aClient *sptr,
 		switch(c) {
 			// El list stuff
 			case 'b': // Ban
-				cc = 0; // Init char counter only here
 				j = mc + 3; // In parv[] the first mask is found at index 3
 
 				// Finito?

+ 7 - 1
u4/m_extwarn.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 
@@ -47,4 +53,4 @@ void extwarn_main(void) {
 		if(!(operclass = Find_operclass(oper->operclass))) // None found, throw warning yo
 			config_warn("[extwarn] Unknown operclass '%s' found in oper block for '%s'", oper->operclass, oper->name);
 	}
-}
+}

+ 7 - 11
u4/m_fantasy.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 
@@ -129,7 +135,6 @@ char *recurseArg(aClient *sptr, aChannel *chptr, int index, char *var, int parc,
 	if(parc > index + 1) {
 		char *p; // Temp pointer =]
 		char arglist[512]; // Store all nicks/other arguments
-		int mc = 1; // Mode flags start at pos 1, just past the direction char ;]
 		memset(arglist, '\0', sizeof(arglist)); // Init it
 
 		for(i = index; parv[i]; i++) {
@@ -389,13 +394,10 @@ int fantasy_chanmsg(aClient *sptr, aChannel *chptr, char *text, int notice) {
 	char *cmdtemp; // Let's keep fCmd->cmdstr intact yo
 	char *cmdv[MAXPARA]; // Muh array
 	int cmdc; // Arg counter
-	char modedir; // Mode direction
-	char modeflag; // Mode flag
 	char *multidelim; // In case of multiple nicks, wat delimiter to use
 	int gotmode; // Got MODE?
 	int gotkick; // Got KICK?
 	int multikick; // Allow multikicks?
-	int setmodes; // In case +v etc has already been fixed up to be +vvvvv
 	int flushem; // Cuz do_cmd() might return FLUSH_BUFFER
 	int passem; // To pass over other do_cmd() calls ;]
 	int stoppem; // Pass over do_cmd() but still free our shit
@@ -435,13 +437,10 @@ int fantasy_chanmsg(aClient *sptr, aChannel *chptr, char *text, int notice) {
 			// Initialise all that shit
 			cmdtemp = strdup(fCmd->cmdstr);
 			cmdc = 0;
-			modedir = 0;
-			modeflag = 0;
 			multidelim = " ";
 			gotmode = 0;
 			gotkick = 0;
 			multikick = 0;
-			setmodes = 0;
 			flushem = 0;
 			passem = 0;
 			stoppem = 0;
@@ -510,9 +509,6 @@ int fantasy_chanmsg(aClient *sptr, aChannel *chptr, char *text, int notice) {
 					FreeEm(cmdtemp);
 					continue;
 				}
-
-				modedir = cmdv[2][0]; // Store the single mode direction char, either + or -
-				modeflag = cmdv[2][1]; // Ditto for mode flag, is shit like: b, G, I, etc
 			}
 
 			// Checkem KICK, multiple ones are temporarily delimited by a special char
@@ -582,4 +578,4 @@ int fantasy_chanmsg(aClient *sptr, aChannel *chptr, char *text, int notice) {
 		FreeEm(parv[i]);
 	FreeEm(ttemp);
 	return HOOK_CONTINUE; // Just process the next hewk lol
-}
+}

+ 8 - 2
u4/m_forward.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 #include "unrealircd.h"
 
 Cmode_t EXTCMODE_FORWARD = 0L;
@@ -477,8 +483,8 @@ static int cb_join(aClient *sptr, aChannel *chptr, char *parv[]) {
 		}
 	}
 
-	int i = 1;
-	for(i; i < 6; i++) {
+	int i;
+	for(i = 1; i < 6; i++) {
 		if(canjoin[i] == '0') {
 			return HOOK_CONTINUE;
 		}

+ 6 - 0
u4/m_getlegitusers.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 #include "unrealircd.h"
 
 #define MSG_GETLEGITUSERS "GETLEGITUSERS" // Actual command name

+ 6 - 8
u4/m_git.c

@@ -1,13 +1,11 @@
-#include "unrealircd.h"
-
-/* This module allows easy installation/updating of modules from git through an IRC command.
-** It requires access to a shell and the commands "make" and "git" (so may not work on Wind0ngs).
-** The paths you can feed it may __NOT__ start with a slash, and are always relative to $HOME.
-** Requires "git" priv in operclasses.
-** Syntax: GIT UPDATE <Unreal source path> <git module path> [-global]
-** Syntax: GIT INSTALL <Unreal source path> <build/tmp folder> <git clone URL> [-global]
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
 */
 
+#include "unrealircd.h"
+
 #define MSG_GIT "GIT" // Raw command thingy
 
 static ModuleInfo *gitMI = NULL; // Store ModuleInfo so we can use it to check for errors in MOD_LOAD

+ 6 - 0
u4/m_joinmute.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 

+ 6 - 0
u4/m_kickjoindelay.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 

+ 6 - 0
u4/m_listrestrict.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 

+ 6 - 0
u4/m_message_commonchans.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 

+ 7 - 3
u4/m_netadmins.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 
@@ -29,7 +35,6 @@ static int netadmins_override_shun(Cmdoverride *ovr, aClient *cptr, aClient *spt
 static int netadmins_override_tempshun(Cmdoverride *ovr, aClient *cptr, aClient *sptr, int parc, char *parv[]);
 
 int check_privs(Cmdoverride *, u_short, aClient *, aClient *, int, char *[]);
-static void InitConf(void);
 
 static Cmdoverride *OvrKill, *OvrKline, *OvrZline, *OvrGline, *OvrGzline, *OvrShun, *OvrTempshun;
 static ModuleInfo *MyModInfo;
@@ -55,7 +60,6 @@ MOD_INIT(m_netadmins) {
 }
 
 MOD_LOAD(m_netadmins) {
-	Cmdoverride *ovr;
 	AddOverride(OvrKill, "KILL", netadmins_override_kill);
 	AddOverride(OvrKline, "KLINE", netadmins_override_kline);
 	AddOverride(OvrZline, "ZLINE", netadmins_override_zline);
@@ -108,7 +112,7 @@ int check_privs(Cmdoverride *ovr, u_short cmd, aClient *cptr, aClient *sptr, int
 	aClient *acptr;
 	char *mask, *mid;
 	u_short mtype, btype;
-	int i, j, isnick, found = 0;
+	int isnick, found = 0;
 
 	int fromnetadmin = (IsOper(sptr) && (ValidatePermissionsForPath("m_netadmins:partial", sptr, NULL, NULL, NULL) || ValidatePermissionsForPath("m_netadmins:full", sptr, NULL, NULL, NULL)));
 	int tonetadmin; // If target is a "netadmin"

+ 6 - 0
u4/m_nick_minlen.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 

+ 6 - 1
u4/m_noghosts.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 
@@ -101,7 +107,6 @@ MOD_UNLOAD(m_noghosts) {
 
 int noghosts_configtest(ConfigFile *cf, ConfigEntry *ce, int type, int *errs) {
 	int errors = 0; // Error count
-	int i; // Iterat0r
 	ConfigEntry *cep, *cep2; // To store the current variable/value pair etc, nested
 
 	// Since we'll add a top-level block to unrealircd.conf, need to filter on CONFIG_MAIN lmao

+ 6 - 0
u4/m_noinvite.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 

+ 6 - 0
u4/m_operpasswd.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 

+ 6 - 0
u4/m_plainusers.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 

+ 6 - 0
u4/m_pmdelay.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 

+ 6 - 0
u4/m_pmlist.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 

+ 6 - 0
u4/m_rmtkl.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 #include "unrealircd.h"
 
 // Some macros lel

+ 6 - 0
u4/m_rtkl.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 

+ 6 - 0
u4/m_sacmds.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 

+ 6 - 0
u4/m_securequery.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 

+ 6 - 1
u4/m_storetkl.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 
@@ -196,7 +202,6 @@ int readDB(void) {
 	int num = 0; // Amount of X:Lines we actually ended up re-adding
 	int rewrite = 0; // If we got expired X:Lines etc, let's rewrite (i.e. clean up) the DB file =]
 	unsigned version; // For checking 'em DB version
-	aTKline *tkl; // Iter8or
 	size_t pathlen = strlen(PERMDATADIR) + strlen(TKL_DB) + 1; // Includes a slash lol
 	char *filepath; // Full path obv
 

+ 6 - 0
u4/m_timedbans.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 

+ 6 - 0
u4/m_tklexcept.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 

+ 6 - 0
u4/m_uline_nickhost.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 

+ 6 - 0
u4/m_uniquemsg.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 

+ 6 - 0
u4/m_websocket_restrict.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 

+ 7 - 2
uncommon/m_bancheck_access.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 
@@ -135,7 +141,6 @@ static int bancheck_override(Cmdoverride *ovr, aClient *cptr, aClient *sptr, int
 	char newflags[MODEBUFLEN + 3]; // Store cleaned up flags
 	char *newparv[MAXPARA + 1]; // Ditto for masks etc
 	char curdir; // Current direction (add/del etc)
-	char *p; // To check the non-wildcard length shit
 	char *tmp; // Store a "raw" mask
 	char *tmpmask; // After cleaning it
 	char *banmask; // Have to store it agen so it doesn't get fukt lol (sheeeeeit)
@@ -190,7 +195,7 @@ static int bancheck_override(Cmdoverride *ovr, aClient *cptr, aClient *sptr, int
 					// Iter8 em
 					Member *memb = NULL; // Channel members thingy =]
 					for(memb = chptr->members; memb; memb = memb->next) {
-						aClient *acptr = memb->cptr; // Ban target
+						acptr = memb->cptr; // Ban target
 						if(acptr) { // Sanity check lol
 							flags = get_access(acptr, chptr); // Get axx flags yo
 							umask = strdup(make_nick_user_host(acptr->name, acptr->user->username, GetHost(acptr))); // Get full nick!ident@host mask imo tbh

+ 6 - 0
uncommon/m_blocknossl.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 

+ 7 - 9
uncommon/m_confprot.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 /*
 ** Build with (from <Unreal source dir>):
 **  VERSION >= 4.0.10
@@ -7,11 +13,6 @@
 **   export EXLIBS="-L<Unreal homedir>/curl/lib -lcurl -L<Unreal source dir>/extras/c-ares/lib <Unreal source dir>/extras/c-ares/lib/libcares.a"; make
 */
 
-/* LICENSE
-**
-** This shit is licensed under the NOK FJERT v1.0 license. You _must_ have the fjerts or gtfo.
-*/
-
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 
@@ -1069,11 +1070,9 @@ ConfigFile *confprot_parse(char *confdata) {
 	ConfigEntry	*curce;
 	ConfigEntry	**lastce;
 	ConfigEntry	*cursection;
-
 	ConfigFile *curcf;
-	ConfigFile *lastcf;
 
-	lastcf = curcf = MyMalloc(sizeof(ConfigFile));
+	curcf = MyMalloc(sizeof(ConfigFile));
 	memset(curcf, 0, sizeof(ConfigFile));
 	lastce = &(curcf->cf_entries);
 	curce = NULL;
@@ -1150,7 +1149,6 @@ ConfigFile *confprot_parse(char *confdata) {
 					continue;
 				}
 				else if(*(ptr+1) == '*') {
-					int commentstart = linenumber;
 					int commentlevel = 1;
 
 					for(ptr+=2;*ptr;ptr++) {

+ 6 - 0
uncommon/m_debug.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 

+ 6 - 0
uncommon/m_fixhop.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 

+ 7 - 6
uncommon/m_md5fjert.c

@@ -1,13 +1,14 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 /*
 ** Build with (from <Unreal source dir>):
 **   export EXLIBS='-DFJERT=\"${INCLUDEDIR}\"'; make
 */
 
-/* LICENSE
-**
-** This shit is licensed under the NOK FJERT v1.0 license. You _must_ have the fjerts or gtfo.
-*/
-
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 
@@ -70,7 +71,7 @@ MOD_UNLOAD(m_md5fjert) {
 int md5fjert_hook_configrun(ConfigFile *cf, ConfigEntry *ce, int type) {
 	ConfigFile *cfptr; // Pointer to a configuration fiel =]
 	unsigned char hashTmp[16], hashTmp2[16]; // Temporary arrays to store the bytes in
-	char *sauce, *modPath; // Store the module's plaintext sauce and its path
+	char *modPath; // Store the module's plaintext sauce and its path
 	int pathLen; // Module path length obv famalmalm
 	struct stat sb; // Struct for fstat()
 	int fd, ret; // Store file handle and its return value for read()

+ 6 - 0
uncommon/m_portsifresi.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 

+ 6 - 0
uncommon/m_pubnetinfo.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 

+ 6 - 0
uncommon/m_rehashgem.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 

+ 6 - 7
uncommon/m_repeatprot.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 
@@ -453,13 +459,6 @@ void blockIt(aClient *sptr) {
 int doKill(aClient *cptr, aClient *sptr) {
 	char msg[BUFSIZE];
 	snprintf(msg, sizeof(msg), "[%s] %s (%s)", me.name, (MyConnect(sptr) ? "Local kill" : "Killed"), tklMessage);
-
-	char *parv[3] = {
-		NULL,
-		sptr->name,
-		msg
-	};
-
 	sendto_snomask_normal(SNO_KILLS, "*** [repeatprot] Received KILL message for %s!%s@%s from %s",
 		sptr->name, sptr->user->username,
 		IsHidden(sptr) ? sptr->user->virthost : sptr->user->realhost,

+ 6 - 0
uncommon/m_textshun.c

@@ -1,3 +1,9 @@
+/* Copyright (C) All Rights Reserved
+** Written by Gottem <support@gottem.nl>
+** Website: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods
+** License: https://gitgud.malvager.net/Wazakindjes/unrealircd_mods/raw/master/LICENSE
+*/
+
 // One include for all cross-platform compatibility thangs
 #include "unrealircd.h"
 

+ 3 - 10
uncommon/m_tkl.c

@@ -955,7 +955,7 @@ aTKline *_tkl_del_line(aTKline *tkl)
  */
 void _tkl_check_local_remove_shun(aTKline *tmp)
 {
-	long i1, i;
+	long i1;
 	char *chost, *cname, *cip;
 	int  is_ip;
 	aClient *acptr;
@@ -1234,9 +1234,7 @@ int  _find_tkline_match(aClient *cptr, int xx)
 int  _find_shun(aClient *cptr)
 {
 	aTKline *lp;
-	char *chost, *cname, *cip;
 	ConfigItem_except *excepts;
-	char host[NICKLEN+USERLEN+HOSTLEN+6], host2[NICKLEN+USERLEN+HOSTLEN+6];
 	int match_type = 0;
 	Hook *hook;
 	int banned = 0;
@@ -1336,7 +1334,7 @@ int spamfilter_check_users(aTKline *tk)
 {
 char spamfilter_user[NICKLEN + USERLEN + HOSTLEN + REALLEN + 64]; /* n!u@h:r */
 char buf[1024];
-int i, matches = 0;
+int matches = 0;
 aClient *acptr;
 
 	list_for_each_entry_reverse(acptr, &lclient_list, lclient_node)
@@ -1438,8 +1436,6 @@ aTKline *_find_qline(aClient *cptr, char *nick, int *ishold)
 int  _find_tkline_match_zap_ex(aClient *cptr, aTKline **rettk)
 {
 	aTKline *lp;
-	char *cip;
-	TS   nowtime;
 	char msge[1024];
 	ConfigItem_except *excepts;
 	Hook *hook;
@@ -1450,9 +1446,6 @@ int  _find_tkline_match_zap_ex(aClient *cptr, aTKline **rettk)
 	if (IsServer(cptr) || IsMe(cptr))
 		return -1;
 
-	nowtime = TStime();
-	cip = GetIP(cptr);
-
 	for (lp = tklines[tkl_hash('z')]; lp; lp = lp->next)
 	{
 		if ((lp->type & TKL_ZAP) && match_user(lp->hostmask, cptr, MATCH_CHECK_IP))
@@ -2818,4 +2811,4 @@ int _match_user(char *rmask, aClient *acptr, int options)
 
 	return 0; /* NOMATCH: nothing of the above matched */
 }
-#endif
+#endif