Hello Alessandro!
Am 03.05.2012 um 15:20 schrieb Alessandro Alessio:
i solved my login problems. It was an SDL socket problem. So, i created a brand new socket management on my own and now everything works fine.
Great :-)
I am actually enjoying checking the various client commands and relative server responds, and i have two questions for you, i believe you can help.
On Channel_Create you actually create one channel (&Server) in your server. Then you have another method Channel_InitPredefined(), which created a list of 'predefined' channels contained into a GLOBAL array Conf_Channels. I actually don't understand where (and if) this array is populated.
The „predefined“ channels are read in from the configuration file in conf.c, function Handle_CHANNEL(). And they become created by the function Channel_InitPredefined() in channel.c, which in turn gets called from the main() function in ngircd.c.
Second question regards messages in chan. Actually the IRC protocol talks about PRVMSG but not about messages that client sends to chan. Is there a prefix or is a server feature, which broadcasts the message to all the clients belonging to the same chan?
The PRIVMSG command is used to send to individual users and to channels. The syntax is:
PRIVMSG <target> :<message>
and <target> can be a nick name like „mynick“/„your nick“ or channel names like „#chan“/„&local“ etc.
Regards Alex