save variable on server

These are old archives. They are kept for historic purposes only.
Post Reply
hibbert
Posts: 35
Joined: Sat Apr 16, 2005 10:30 am

save variable on server

Post 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
I hope you understand my bad english :wink:
w00t
Posts: 1136
Joined: Thu Mar 25, 2004 3:31 am
Location: Nowra, Australia

Post by w00t »

We really need more information than that.
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
hibbert
Posts: 35
Joined: Sat Apr 16, 2005 10:30 am

Post 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
I hope you understand my bad english :wink:
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post 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"?)
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 »

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 :wink:
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post 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
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 »

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 :wink:
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post 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/
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 »

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
I hope you understand my bad english :wink:
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post by Dukat »

No, you can't.
If you don't make mistakes, you aren't really trying.
- Coleman Hawkins
Post Reply