These are old archives. They are kept for historic purposes only.
hibbert
Posts: 35 Joined: Sat Apr 16, 2005 10:30 am
Post
by hibbert » Wed Apr 20, 2005 9:57 pm
Hi,
is it possible to save a variable (boolean) on my server ?
save a var means:
change the value of the var
get the value of the var
thx hibbert
I hope you understand my bad english
w00t
Posts: 1136 Joined: Thu Mar 25, 2004 3:31 am
Location: Nowra, Australia
Post
by w00t » Thu Apr 21, 2005 2:33 am
We really need more information than that.
hibbert
Posts: 35 Joined: Sat Apr 16, 2005 10:30 am
Post
by hibbert » Thu Apr 21, 2005 12:08 pm
ok, i started a server. i connect to teh server by a self - programmed program.
Now i want to save a var on the ircserver, a simple boolean var.
and evry time this var is changed, all clients should get a message from the server.
is it possible ??
zhx hibbert
I hope you understand my bad english
Dukat
Posts: 1083 Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland
Post
by Dukat » Thu Apr 21, 2005 12:12 pm
We need even more information...
Why can't you just notice all clients directly instead of changing a variable to notice all clients? Why can't you store your information elsewhere (i.e. in your "self-programmed program"?)
If you don't make mistakes, you aren't really trying.
- Coleman Hawkins
hibbert
Posts: 35 Joined: Sat Apr 16, 2005 10:30 am
Post
by hibbert » Thu Apr 21, 2005 12:31 pm
the problem is, if a new user connects, the boolean is false, but maybe at an other client the var is true, so i want to save it.
is there any possibility to save a var or a text in irc, which my client could get ?
can i make something like a function in irc ?
hibbert
I hope you understand my bad english
Dukat
Posts: 1083 Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland
Post
by Dukat » Thu Apr 21, 2005 12:41 pm
Tell us what exactly you want to do with your program, maybe we can tell you an easier way.
You can write "functions" for Unreal IRCD, you just have to write a module. You need to know C, though...
If you don't make mistakes, you aren't really trying.
- Coleman Hawkins
hibbert
Posts: 35 Joined: Sat Apr 16, 2005 10:30 am
Post
by hibbert » Thu Apr 21, 2005 12:44 pm
ok, then i have some more questions:
» Can I use var's in my functions ?
» Can I save them ?
» Can I send a Message to the server - Clients ?
» Where can I find some tutorials for make my own function ?
thx hibbert
I hope you understand my bad english
Dukat
Posts: 1083 Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland
Post
by Dukat » Thu Apr 21, 2005 12:53 pm
Yes you can do all that.
There are no tutorials - have a look at the "src/modules" directory. You'll find the sourcecode of all modules Unreal uses in there.
The API docs for module coders:
http://modules.unrealircd.com/
If you don't make mistakes, you aren't really trying.
- Coleman Hawkins
hibbert
Posts: 35 Joined: Sat Apr 16, 2005 10:30 am
Post
by hibbert » Thu Apr 21, 2005 1:25 pm
ok that's to heavy for me
i just want to create a var on my server and to change or to read it, nothing more.
is it possible do it without a function ??
or can i save a text on IRC ? (it's like a var)
hibbert
I hope you understand my bad english
Dukat
Posts: 1083 Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland
Post
by Dukat » Thu Apr 21, 2005 2:00 pm
No, you can't.
If you don't make mistakes, you aren't really trying.
- Coleman Hawkins