gline in module

These are old archives. They are kept for historic purposes only.
Post Reply
Blackl3232
Posts: 5
Joined: Sat Aug 14, 2004 11:42 pm

gline in module

Post by Blackl3232 »

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
AngryWolf
Posts: 554
Joined: Sat Mar 06, 2004 10:53 am
Location: Hungary
Contact:

Post by AngryWolf »

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).
Blackl3232
Posts: 5
Joined: Sat Aug 14, 2004 11:42 pm

Post by Blackl3232 »

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.
w00t
Posts: 1136
Joined: Thu Mar 25, 2004 3:31 am
Location: Nowra, Australia

Post by w00t »

That's something that I still can't figure out :/

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]
codemastr
Former UnrealIRCd head coder
Posts: 811
Joined: Sat Mar 06, 2004 8:47 pm
Location: United States
Contact:

Post by codemastr »

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.
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.
-- codemastr
Post Reply