Anope IRC Services
Anope Development => Modules => Topic started 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
-
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.
-
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
-
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]
-
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
-
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?
-
this module is not compilng with newest release, ant fixes?
Mistrider
-
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]
-
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]
-
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
-
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]
-
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 ?
-
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
-
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.
-
\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
-
^ I just made use of this Viper. - Good stuff buddy.
-
:)
edit: i could resist answering untill i noticed this would be my 200st post :7
[Edited on 27-9-2006 by Viper]
-
Wooo :)