Modification of the /LIST response

These are old archives. They are kept for historic purposes only.
Post Reply
Badaboum
Posts: 3
Joined: Fri May 13, 2005 1:34 pm

Modification of the /LIST response

Post by Badaboum » Fri May 13, 2005 1:44 pm

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.

Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post by Dukat » Fri May 13, 2005 1:56 pm

Can't you just use /topic #test 01 Test ?
If you don't make mistakes, you aren't really trying.
- Coleman Hawkins

Badaboum
Posts: 3
Joined: Fri May 13, 2005 1:34 pm

How ?

Post by Badaboum » Fri May 13, 2005 2:09 pm

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:

Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post by Dukat » Fri May 13, 2005 2:55 pm

Just use trim()? :D
If you don't make mistakes, you aren't really trying.
- Coleman Hawkins

Syzop
UnrealIRCd head coder
Posts: 1955
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post by Syzop » Fri May 13, 2005 3:03 pm

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.

Badaboum
Posts: 3
Joined: Fri May 13, 2005 1:34 pm

Post by Badaboum » Fri May 13, 2005 3:04 pm

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... ?

Syzop
UnrealIRCd head coder
Posts: 1955
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post by Syzop » Fri May 13, 2005 3:24 pm

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)

Post Reply