how do i set a gline in a module.
i want to do it on a join event. i have all the other code i just need to know how to set a gline from sptr
gline in module
If you know that sptr, what you want to ban, always points to a local client, the easiest way is to use Syzop's place_host_ban function declared in src/s_kline.c. Or else build up an array of tkl parameters that you later pass to m_tkl (a function that is in src/s_kline.c, too), like in the m_tkl_line function of src/modules/m_tkl.c (see tklllayer).
-
- Posts: 5
- Joined: Sat Aug 14, 2004 11:42 pm
That's something that I still can't figure out :/
I think it has something to do with linking source files.
I think it has something to do with linking source files.
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
-
- Former UnrealIRCd head coder
- Posts: 811
- Joined: Sat Mar 06, 2004 8:47 pm
- Location: United States
- Contact:
The fact that you are saying that tells me you don't know C. You don't include .c files, you include .h files. There is no reason you would ever want to include s_kline.c. I suggest, before playing with modules, you learn some C first.how do i include the file from src. i tried #include <src/s_kline.c>, <../s_kline.c>, <s_kline.c>, with <>s with "s and nothing worked.
-- codemastr