I need to know that is it possible to change the flag of partyline +p to something special like setting any other flag. The reason I need this feature is because I have 2 bots connected, and my users are having +fop globaly, all I want it that they could only chat with 1 bot and if they try to chat with another they get refused.
# Enter the flags that all new users should get by default. See '.help whois'
# on the partyline for a list of flags and their descriptions.
set default-flags "hp"
Add [SOLVED] to the thread title if your issue has been. Search | FAQ | RTM
You did'nt get my point. I never asked for default flags, I myself have coded a script which gives everyone +fop I want them to chat with 1 bot but that bot is connected with another bot in the partyline so they can easily .relay botuser and chat there too. I was to restrict them to go to another bot, so for that I want to change the settings of the another bot. The other bot will not recognize +p users.
chattr <handle> [changes [channel]]
Description: changes the attributes for a user record, if you include any.
Changes are of the form '+f', '-o', '+dk', '-o+d', etc. If changes are
specified in the format of |<changes> <channel>, the channel-specific
flags for that channel are altered. You can now use the +o|-o #channel
format here too.
Returns: new flags for the user (if you made no changes, the current
flags are returned). If a channel was specified, the global AND the
channel-specific flags for that channel are returned in the format of
globalflags|channelflags. "*" is returned if the specified user does
not exist.
Module: core
Add [SOLVED] to the thread title if your issue has been. Search | FAQ | RTM
iamdeath wrote:You did'nt get my point. I never asked for default flags, I myself have coded a script which gives everyone +fop I want them to chat with 1 bot but that bot is connected with another bot in the partyline so they can easily .relay botuser and chat there too. I was to restrict them to go to another bot, so for that I want to change the settings of the another bot. The other bot will not recognize +p users.
Not without editing the source.
However, you could tell each bot not to accept p-flag when sharing, using the private-globals config-setting. This atleast would allow you to restrict dcc access to individual bots on a per-user basis, even tho this means you'll have to manually manage +/-p locally at each bot (Guess you could solve this with a script that communicates over the botnet).
Just a hint, you're not looking at modifying a single file such as #define new_partyflag "q" or such...
I guess a good start would be to 'grep' for USER_PARTY which is the macro used in the source to denote the +p-flag privileges (not the flag, but the privileges it gives)