Page 1 of 1

save variable on server

Posted: Wed Apr 20, 2005 9:57 pm
by hibbert
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

Posted: Thu Apr 21, 2005 2:33 am
by w00t
We really need more information than that.

Posted: Thu Apr 21, 2005 12:08 pm
by hibbert
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

Posted: Thu Apr 21, 2005 12:12 pm
by Dukat
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"?)

Posted: Thu Apr 21, 2005 12:31 pm
by hibbert
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

Posted: Thu Apr 21, 2005 12:41 pm
by Dukat
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... :D

Posted: Thu Apr 21, 2005 12:44 pm
by hibbert
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

Posted: Thu Apr 21, 2005 12:53 pm
by Dukat
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/

Posted: Thu Apr 21, 2005 1:25 pm
by hibbert
ok that's to heavy for me :lol:

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

Posted: Thu Apr 21, 2005 2:00 pm
by Dukat
No, you can't.