Browse Source

m_message_commonchans: Should probs exclude messages to/from U:Lines xdxd

Wazakindjes 3 years ago
parent
commit
0681abd572
1 changed files with 2 additions and 2 deletions
  1. 2 2
      u4/m_message_commonchans.c

+ 2 - 2
u4/m_message_commonchans.c

@@ -28,7 +28,7 @@ long commchans_extumode = 0; // Store bitwise value latur
 // Dat dere module header
 ModuleHeader MOD_HEADER(m_message_commonchans) = {
 	"m_message_commonchans", // Module name
-	"$Id: v1.02 2017/01/24 Gottem$", // Version
+	"$Id: v1.03 2018/12/01 Gottem$", // Version
 	"Adds umode +c to prevent people who aren't in a common channel with you from messaging you", // Description
 	"3.2-b8-1", // Modversion, not sure wat do
 	NULL
@@ -64,7 +64,7 @@ MOD_UNLOAD(m_message_commonchans) {
 
 // Actual hewk function m8
 char *commchans_hook_pre_usermsg(aClient *sptr, aClient *to, char *text, int notice) {
-	if(!sptr || !to || sptr == to || IsOper(sptr) || !IsPerson(sptr) || !IsPerson(to) || !(to->umodes & commchans_extumode) || has_common_channels(sptr, to))
+	if(!sptr || !to || sptr == to || IsULine(sptr) || IsULine(to) || IsOper(sptr) || !IsPerson(sptr) || !IsPerson(to) || !(to->umodes & commchans_extumode) || has_common_channels(sptr, to))
 		return text;
 
 	sendnotice(sptr, "*** You need to be on a common channel with %s to privately message them", to->name);