Disable Private Msgs and Notice

These are old archives. They are kept for historic purposes only.
Post Reply
koolg
Posts: 4
Joined: Sat Jun 02, 2007 11:36 am

Disable Private Msgs and Notice

Post by koolg » Sat Jun 02, 2007 11:40 am

Hello All ,

Since i can't compile PrivDeaf , how can i block private msg's and private notices?

JanisB
Posts: 128
Joined: Fri Apr 22, 2005 9:05 am
Location: LV
Contact:

Post by JanisB » Sat Jun 02, 2007 12:44 pm

spamfilter?

Stealth
Head of Support
Posts: 2086
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth » Sat Jun 02, 2007 4:43 pm

Why is it you can't compile PrivDeaf?

koolg
Posts: 4
Joined: Sat Jun 02, 2007 11:36 am

Post by koolg » Sun Jun 03, 2007 1:00 am

cc -O2 -fno-strict-aliasing -pipe -fPIC -DPIC -shared -DDYNAMIC_LINKING -o m_privdeaf.so m_privdeaf.c
m_privdeaf.c:6:20: config.h: No such file or directory
m_privdeaf.c:7:20: struct.h: No such file or directory
m_privdeaf.c:8:20: common.h: No such file or directory
m_privdeaf.c:9:17: sys.h: No such file or directory
m_privdeaf.c:10:21: numeric.h: No such file or directory
m_privdeaf.c:11:17: msg.h: No such file or directory
m_privdeaf.c:12:21: channel.h: No such file or directory
m_privdeaf.c:22:15: h.h: No such file or directory
m_privdeaf.c:34: error: syntax error before "Mod_Header"
m_privdeaf.c:37: warning: initialization makes integer from pointer without a cast
m_privdeaf.c:38: warning: excess elements in scalar initializer
m_privdeaf.c:38: warning: (near initialization for `Mod_Header')
m_privdeaf.c:39: warning: excess elements in scalar initializer
m_privdeaf.c:39: warning: (near initialization for `Mod_Header')
m_privdeaf.c:40: warning: excess elements in scalar initializer
m_privdeaf.c:40: warning: (near initialization for `Mod_Header')
m_privdeaf.c:42: warning: excess elements in scalar initializer
m_privdeaf.c:42: warning: (near initialization for `Mod_Header')
m_privdeaf.c:42: warning: data definition has no type or storage class
m_privdeaf.c:45: error: syntax error before '*' token
m_privdeaf.c:45: warning: data definition has no type or storage class
m_privdeaf.c:46: error: syntax error before '*' token
m_privdeaf.c:46: warning: data definition has no type or storage class
m_privdeaf.c:48: error: syntax error before "char"
m_privdeaf.c:48: error: syntax error before '*' token
m_privdeaf.c:50: error: syntax error before "int"
m_privdeaf.c:50: error: syntax error before '*' token
m_privdeaf.c:51: error: `MOD_INIT' declared as function returning a function
m_privdeaf.c: In function `MOD_INIT':
m_privdeaf.c:52: error: `modinfo' undeclared (first use in this function)
m_privdeaf.c:52: error: (Each undeclared identifier is reported only once
m_privdeaf.c:52: error: for each function it appears in.)
m_privdeaf.c:52: error: `UMODE_GLOBAL' undeclared (first use in this function)
m_privdeaf.c:52: error: `umode_allow_all' undeclared (first use in this function)
m_privdeaf.c:52: warning: assignment makes pointer from integer without a cast
m_privdeaf.c:59: error: `MOD_FAILED' undeclared (first use in this function)
m_privdeaf.c:62: error: `HOOKTYPE_USERMSG' undeclared (first use in this function)
m_privdeaf.c:62: warning: assignment makes pointer from integer without a cast
m_privdeaf.c:65: error: `MOD_OPT_PERM' undeclared (first use in this function)
m_privdeaf.c:67: error: `MOD_SUCCESS' undeclared (first use in this function)
m_privdeaf.c: At top level:
m_privdeaf.c:70: error: syntax error before "int"
m_privdeaf.c:71: error: `MOD_LOAD' declared as function returning a function
m_privdeaf.c: In function `MOD_LOAD':
m_privdeaf.c:72: error: `MOD_SUCCESS' undeclared (first use in this function)
m_privdeaf.c: At top level:
m_privdeaf.c:75: error: syntax error before "int"
m_privdeaf.c:76: error: `MOD_UNLOAD' declared as function returning a function
m_privdeaf.c: In function `MOD_UNLOAD':
m_privdeaf.c:77: error: `MOD_SUCCESS' undeclared (first use in this function)
m_privdeaf.c: At top level:
m_privdeaf.c:80: error: syntax error before "char"
m_privdeaf.c:80: error: syntax error before '*' token
m_privdeaf.c: In function `privdeaf_checkmsg':
m_privdeaf.c:82: error: `acptr' undeclared (first use in this function)
m_privdeaf.c:82: error: `sptr' undeclared (first use in this function)
m_privdeaf.c:87: error: `text' undeclared (first use in this function)
*** Error code 1

Stealth
Head of Support
Posts: 2086
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth » Sun Jun 03, 2007 1:46 am

Try

Code: Select all

make custommodule MODULEFILE=m_privdeaf
in the Unreal directory

koolg
Posts: 4
Joined: Sat Jun 02, 2007 11:36 am

Post by koolg » Sun Jun 03, 2007 9:36 am

Thanks , compiled.

added loadmodule "modules/m_privdeaf.so"; to the conf file.
and

set {
modes-on-connect "D";
restrict-usermodes "D";
};

restarted the IRCD but it does not seem to work. Did i missed any steps?

Post Reply