I'm writing a piece of code to invite users to any invite only channels the bot knows about as they auth. I'm doing this with a piece of code such as the following :
Code: Select all
if (u_addinvite(chan, invite, from, cmt, expire_time,sticky))
add_mode(chan, '+', 'I', invite);
- 1. Is this dangerous? or just messy? I couldnt see any safety in u_addinvite to prevent this happening. I'm assuming ircD has the sense not to print a 'user invited you to #blah' message twice... although it IS a different user... hmm.
2. How can I tell if a user already has an invite to this channel? After searching the tellinvite (display invites on channel code) I got a bit confused - I know how to find the invites section in the channel structure, but I'm not sure how you tell what relates to whom...