Anope IRC Services

Anope Development => Modules => Topic started by: Mitsos on December 28, 2012, 05:58:14 PM

Title: [REQUEST]: ns_id_notice
Post by: Mitsos on December 28, 2012, 05:58:14 PM
Hello,

If anyone developer can create this module for Anope 1.8.7 i will thank him very much!

DESC: This module will notice the nickname with NickServ when the nickname has identify succesfully to the services with a random message, i wanna to put more than 100 random messages inside a file or a configuration file to read a random message from there.

Example:

-NickServ- This nickname is registered and protected.  If it is your
-
-NickServ- nick, type /msg NickServ IDENTIFY password.  Otherwise,
-
-NickServ- please choose a different nick.
-
-NickServ- Password accepted - you are now recognized.
-
- NickServ- Cookie: Don't ask for an IRC Operator in this network, You will be automatically ignored.

- Thanks!
Title: Re: [REQUEST]: ns_id_notice
Post by: Sketch on February 11, 2013, 07:24:08 PM
This may be very possible.
I have little to no C skills but I will see if I can make a port of it from another module.

Are you totally against an IRCd module to do this?
Title: Re: [REQUEST]: ns_id_notice
Post by: katsklaw on February 11, 2013, 07:30:52 PM
This may be very possible.
I have little to no C skills but I will see if I can make a port of it from another module.

Are you totally against an IRCd module to do this?

This might help: http://iranserv.org/ircd/Anope%20Modules/ns_fortunecookie.c
Title: Re: [REQUEST]: ns_id_notice
Post by: Sketch on February 11, 2013, 07:32:46 PM
Thanks katzklaw. I'll take a look
Title: Re: [REQUEST]: ns_id_notice
Post by: Mitsos on February 25, 2013, 04:17:46 PM
This might help: http://iranserv.org/ircd/Anope%20Modules/ns_fortunecookie.c

This module DOES NOT working on anope 1.8.7 when 'make' was entered return these errors:

Code: [Select]
dynamic -rdynamic -Wall -fPIC -DPIC -shared -I../../include -c ns_fortunecookie.c
ns_fortunecookie.c:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'COOKIE_PREFIX'
ns_fortunecookie.c: In function 'AnopeInit':
ns_fortunecookie.c:113: error: 'COOKIE_FILE' undeclared (first use in this function)
ns_fortunecookie.c:113: error: (Each undeclared identifier is reported only once
ns_fortunecookie.c:113: error: for each function it appears in.)
ns_fortunecookie.c:90: warning: unused variable 'c'
ns_fortunecookie.c: In function 'm_ns_do_cookie':
ns_fortunecookie.c:280: error: 'COOKIE_FILE' undeclared (first use in this function)
ns_fortunecookie.c:305: error: 'COOKIE_PREFIX' undeclared (first use in this function)
*** Error code 1

Stop in /usr/home/irpg/anope-1.8.7/src/modules.
*** Error code 1

Stop in /usr/home/irpg/anope-1.8.7.
Title: Re: [REQUEST]: ns_id_notice
Post by: katsklaw on February 25, 2013, 11:49:51 PM
Exactly what are you typing to compile it? What directory are you in when you do?
Title: Re: [REQUEST]: ns_id_notice
Post by: katsklaw on March 05, 2013, 03:01:08 PM
ns_fortunecookie.c compiles just fine on 1.8.8