Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: [REQUEST]: ns_id_notice  (Read 4746 times)

0 Members and 2 Guests are viewing this topic.

Mitsos

  • Anope User
  • Offline Offline
  • Posts: 21
[REQUEST]: ns_id_notice
« 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!
« Last Edit: December 28, 2012, 06:37:02 PM by Mitsos »
Logged

Denver

  • Anope User
  • Offline Offline
  • Gender: Male
  • Posts: 7
Re: [REQUEST]: ns_id_notice
« Reply #1 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?
Logged
All that is must come to dust

katsklaw

  • Supporter
  • Anope User
  • Offline Offline
  • Posts: 537
Re: [REQUEST]: ns_id_notice
« Reply #2 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
Logged

Denver

  • Anope User
  • Offline Offline
  • Gender: Male
  • Posts: 7
Re: [REQUEST]: ns_id_notice
« Reply #3 on: February 11, 2013, 07:32:46 PM »

Thanks katzklaw. I'll take a look
Logged
All that is must come to dust

Mitsos

  • Anope User
  • Offline Offline
  • Posts: 21
Re: [REQUEST]: ns_id_notice
« Reply #4 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.
Logged

katsklaw

  • Supporter
  • Anope User
  • Offline Offline
  • Posts: 537
Re: [REQUEST]: ns_id_notice
« Reply #5 on: February 25, 2013, 11:49:51 PM »

Exactly what are you typing to compile it? What directory are you in when you do?
Logged

katsklaw

  • Supporter
  • Anope User
  • Offline Offline
  • Posts: 537
Re: [REQUEST]: ns_id_notice
« Reply #6 on: March 05, 2013, 03:01:08 PM »

ns_fortunecookie.c compiles just fine on 1.8.8
Logged
Pages: [1]   Go Up