Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: Default Topic  (Read 5802 times)

0 Members and 1 Guest are viewing this topic.

guesti

  • Guest
Default Topic
« on: June 29, 2006, 07:15:39 PM »

Hi there.

Is there already a module or can i set on services.conf to put a default topic for new registered channels.

I'm using unreal and on spamfilter regex i blocked changing topics normal users, so when they try to change they will get a msg: Please ask admins to Change topic for you.

This is working good, but i though it would be much better when they register a new channel that the topic automaticly changes to: Please ask admins to Change topic for you.

And also to be assigned automaticly a specified bot by admin to a new registered channel.

Like /cs set defaultbot Security

I'm new here on this forum so i really need some help.

Thank you in advance!!!
Logged

n00bie

  • Anope User
  • Offline Offline
  • Gender: Male
  • Posts: 411
(No subject)
« Reply #1 on: July 08, 2006, 02:31:37 PM »

hello guesti,

you can find cs_topic_on_reg.c from this link: http://noobie.esmartkid.com/mymods/cs_topic_on_reg.c

and for your second request about auto bot assigning, please take a look at the Modules Section of Anope, you can find bs_autoassign.c by SGR :D
Logged
I am always doing things that which I cannot do, in order that I may learn how to do it.

Tom65789

  • Anope User
  • Offline Offline
  • Posts: 343
    • www.t65789.co.uk
(No subject)
« Reply #2 on: July 08, 2006, 05:13:05 PM »

eek, n00bie i know your learning to code but might be a good idea to avoid send_cmd and use anope_cmd_topic

n00bie

  • Anope User
  • Offline Offline
  • Gender: Male
  • Posts: 411
(No subject)
« Reply #3 on: July 08, 2006, 05:55:08 PM »

Thanks for your suggesstion Tom, i really appreciate it :D the code is now changed as you suggested.
Changed: send_cmd to anope_cmd_topic
and also fixed a crash bug :/

Links: http://noobie.esmartkid.com/mymods/cs_topic_on_reg.c

[Edited on 15-7-2006 by n00bie]
Logged
I am always doing things that which I cannot do, in order that I may learn how to do it.

Camti

  • Guest
(No subject)
« Reply #4 on: August 16, 2006, 09:38:07 PM »

can i have the windows version of the cs_topic_on_reg

thanks
Logged

n00bie

  • Anope User
  • Offline Offline
  • Gender: Male
  • Posts: 411
(No subject)
« Reply #5 on: August 16, 2006, 11:12:47 PM »

well, that module have 1 configuration option i.e. what do you want it for the default channel topic? tell me what topic you want on channel registration and i'll compile the mod for you :+
Logged
I am always doing things that which I cannot do, in order that I may learn how to do it.

heinz

  • Guest
(No subject)
« Reply #6 on: August 16, 2006, 11:26:54 PM »

You should use the new module config system thingy... it'll save having defines in the source code, and will allow people to change the options without re-compiling the module :)
Logged

Trystan Scott Lee

  • Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 343
(No subject)
« Reply #7 on: August 17, 2006, 01:19:30 AM »

Logged
my God my tourniquet, return to me salvation
Pages: [1]   Go Up