Anope IRC Services

Anope Development => Modules => Topic started by: atdheu on May 16, 2006, 08:59:44 PM

Title: Not in Channel Module!
Post by: atdheu on May 16, 2006, 08:59:44 PM
Hello,

can someone code a module that gline user who do not a channel within xx minutes?

regards

atdheu
Title:
Post by: n00bie on May 16, 2006, 09:28:06 PM
hello, atdheu ... take a look at the anope modules site and search for os_notinchanlist.c  module by SGR. I guess that is similar to what your looking for.
Title:
Post by: atdheu on May 18, 2006, 08:05:20 AM
Yes, i try this module, but i need a module where i can specify the time after an user get glined.
With the os_notinchanlist i can only manually akill all users who are not in channel.


regards
atdheu
Title:
Post by: Tom65789 on May 18, 2006, 10:35:41 AM
Why gline users just because users dont join a channel. i can only see alot of users getting glined. but you can just look at the module above and edit it to gline but i really dont see the point.

[Edited on 18-5-2006 by Tom65789]
Title:
Post by: PeaceKeeper on May 26, 2006, 11:18:18 AM
If I were you I'd force them into a channel like Lobby or Lounge or something like that after xx time ,.. where you would expect newcomers to join in.

More userfriendly :)

Gonan do the same on my server. Created a room called Lounge,.. setup a couple mods. Just gotta add the module to send them there still :P
Title: Looking for this module
Post by: guesti on June 29, 2006, 08:57:01 PM
Quote
Originally posted by PeaceKeeper
If I were you I'd force them into a channel like Lobby or Lounge or something like that after xx time ,.. where you would expect newcomers to join in.

More userfriendly :)

Gonan do the same on my server. Created a room called Lounge,.. setup a couple mods. Just gotta add the module to send them there still :P


Where can i get such kind of module that forces users after specified time to join a specified channel?
Title:
Post by: mistrider on August 17, 2006, 02:13:25 AM
this module is not compilng with newest release, ant fixes?

Mistrider
Title:
Post by: Wintermute on August 20, 2006, 08:12:00 AM
In fact it's extremly anoying. Every new version of anope breaks modules i need. This isn't really what a >1.x version should do: big api changes.
Really, that drives me nuts as i'm not a coder and so i'm unable to fix the modules myself.

To say it short: that sucks.

For sure i'm happy about this free project done in the spare time of some nice guys. And for sure i'm interessted in advancements ... but this is really going to be a pain. Sorry, but i felt the way to say it.

[edit] Side effect of this: i don't upgrade .. "notinchanlist" is a important feature i need a lot.

[Edited on 20-8-2006 by Wintermute]
Title:
Post by: Dave Robson on August 20, 2006, 09:25:59 AM
in fairness, all our stable branch modules still work, e.g. any module wrote for any of the 1.6.x series will work with 1.6.1 - 1.6.4, and have done for over a year.... - yes we change the api on the 1.7 versions - its a _development_ version.

To say it short: use the stable version.

[Edited on 20-8-2006 by Rob]
Title:
Post by: djGrrr on August 20, 2006, 04:39:53 PM
if you can't handle all the changes, then don't use the development version as stuff is expected to break with it.

i did a little investigating and found out the problem, and i managed to fix os_notinchanlist
http://www.p2p-network.net/os_notinchanlist.c
Title:
Post by: Tom65789 on August 20, 2006, 05:28:48 PM
and it uses strtok. should never use strtok in a module. few other things could be cleaned up with it as well

if i get time i'll re-write the entire module.

[Edited on 20-8-2006 by Tom65789]
Title:
Post by: djGrrr on August 20, 2006, 06:07:13 PM
i don't know about all that (i don't really know C at all, but i know php quite well so it wasn't too hard to figure out the problem)
i want to learn C though, so, what should be used in place of strtok ?
Title:
Post by: Jan Milants on August 20, 2006, 11:27:21 PM
i rewrote this for my net some time ago... can't get it off the services hub right now though, i ll c if i can get it later and c if it s good enough for public use...

and instead of strtok it s best to use the token commands... http://wiki.anope.org/index.php/Modules:QuickList:Tokens
Title:
Post by: Jan Milants on August 22, 2006, 01:47:40 PM
ok took me a bit longer then i thought... after i got my login info back turned out it still needed some cleaning up, so sorry about the delay...

MD5-hash:
(Source) 1F3B34428DE08C5B018DFBED044ECB9E
(Win32 DLL) 45A02A7BEBDF07498AA2E40F5A0F9EFA

Download:
Source: http://vips.hopto.org/~viper/os_notinchanlist.c
Windows dll: http://vips.hopto.org/~viper/os_notinchanlist-2.1.zip

Please read the documentation before loading this module. For windows users there is a README.txt included in the zip.
Title:
Post by: Tom65789 on August 22, 2006, 03:27:31 PM
\o/ and i started re-writing it but looking at that you did it like 90% the same way as i did so it saves me finishing what i started :P
Title:
Post by: Charles Kingsley on September 26, 2006, 01:45:36 PM
^ I just made use of this Viper. - Good stuff buddy.
Title:
Post by: Jan Milants on September 27, 2006, 09:28:49 PM
:)

edit: i could resist answering untill i noticed this would be my 200st post :7

[Edited on 27-9-2006 by Viper]
Title:
Post by: Charles Kingsley on September 28, 2006, 09:26:56 AM
Wooo :)