Page 1 of 1

Modification of the /LIST response

Posted: Fri May 13, 2005 1:44 pm
by Badaboum
Hello !
I am trying to make a Windows server for an online game based on IRC.
For that i need a response to the /LIST command like that :
#Channel NbUsers :Type Description

Where Type is a 2 digits number.
Have you got an idea on how to do that ?
Can i use a special field in official-channel of the unrealircd.conf file ?
Instead of "#Test"{ topic "Test"; };
I'd like something like "#Test"{type "01"; topic "Test"; };
And a TCP response with #Test 0 :01 Test

Thanks for your help.

Posted: Fri May 13, 2005 1:56 pm
by Dukat
Can't you just use /topic #test 01 Test ?

How ?

Posted: Fri May 13, 2005 2:09 pm
by Badaboum
In my unrealircd.conf i have that :

Code: Select all

official-channels {
	"#Test"{ topic "Test"; };
};
How can i use /topic ?

If the 00 is in the topic it doesn't work because it makes a space between the : and 00 in the chat data
:cry:

Posted: Fri May 13, 2005 2:55 pm
by Dukat
Just use trim()? :D

Posted: Fri May 13, 2005 3:03 pm
by Syzop
That's because channel modes are usually shown in front of the channel. If you run './Config -advanced' then answer no to this question:

Code: Select all

Do you want to show the modes a channel has set in the /list output?
[Yes] ->
and run 'make' again.

If you are on windows well, blah :P.

Obviously you should use services for keeping the topic set whenever the first user joins.

Posted: Fri May 13, 2005 3:04 pm
by Badaboum
I am on windows :? but using linux isn't a problem
So compiling with that answer under linux will make the response to /list like i want ?
And how can i say the Type is 00 for a channel, 01 for another etc... ?

Posted: Fri May 13, 2005 3:24 pm
by Syzop
I thought you were going to use the first 2 digits of the topic for that purpose.

If you want it to be a real seperate field and modify the response in the ircd code, then we are not going to provide support for that (modifying of code).
It also cannot be (properly) done in a module (unless you have like <100 channels and you code a /list yourself)