View Issue Details

IDProjectCategoryView StatusLast Update
0002385unrealircdpublic2006-11-23 13:49
Reporterarbiter Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionno change required 
Summary0002385: new usermode: private msgs only from channel members
DescriptionCR has a username that restrict users to accept pm just from users that are in same channel , and not from others.
It could be helpfull to stop flood/spam from outside the channel.
sometimes spamers send a spy in channel , it gathers nicks , then they send spam from outside the channel.
3rd party modules

Activities

Stealth

2005-03-04 14:44

reporter   ~0009401

I liked the concept of this usermode when they first made it, but if you noticed, it has NEVER worked as proposed.

And not being able to PM people that arent in a common channel was half its putpose. I would tell more, but it is quite complicated and I don't want to dig through the CR documentation for it.

A usermode that simply just blocks messages from anyone who is not on a common channel would be a great idea. This also sounds as if it would be an easy module to make *hint*module coders*hint*.

syzop

2005-03-04 19:01

administrator   ~0009425

It would be wise to be implemented as a module indeed.. It's also fully possible and not hard :).

NOTE: This feature could eat quite some cpu, because one would have to walk trough the memberlist of all channels where the user is on... In the not uncommon case that a user is on 8 channels with 100 users each that would mean looking at 800 entries (like: if the user is not in any channels)... Doing that in case of some kind of huge flood, eg with 200 bots msging you... then it can eat quite a bit I think, but I have to admit this is just speculation.. one would have to actually test it AND time it to get some correct results :p

aquanight

2005-03-05 13:38

reporter   ~0009436

[quote]NOTE: This feature could eat quite some cpu, because one would have to walk trough the memberlist of all channels where the user is on... In the not uncommon case that a user is on 8 channels with 100 users each that would mean looking at 800 entries (like: if the user is not in any channels)... Doing that in case of some kind of huge flood, eg with 200 bots msging you... then it can eat quite a bit I think, but I have to admit this is just speculation.. one would have to actually test it AND time it to get some correct results :p [/quote]

Well, how does, for example, QUIT and NICK walk the common users? Would the CPU issue exist there as well (eg, 8 channels * 100 users, trying to send a QUIT/NICK to all of them)? If not, then just duplicate whatever algorithm quit/nickchange uses :P except instead of sending data you're testing if the user is the same as the privmsg source (and you don't need to keep looping after you find the user :P ).

syzop

2005-03-05 13:45

administrator   ~0009437

That's why both NICK and QUIT (the latter via connection throttling) are throttled. It's exactly because both things (reconnecting, changing nicks) have such an impact on the net/bandwidth/cpu/etc :P.

Perhaps have a look at CPRIVMSG/CNOTICE, it exists exactly for this reason (google -> CPRIVMSG).

White_Magic

2005-03-06 09:50

reporter   ~0009445

why not set it as a channel mode? - i think thats more of a better idea than just a umode (many chatters ive seen take more interest in channel modes than user modes by miles)

arbiter

2005-03-06 10:33

reporter   ~0009450

that idea only is usefull when a user is in one channel. what about when someone is in 2 channels , one channel has that chmode , and other channel not?

aquanight

2005-03-07 19:58

reporter   ~0009482

It's not a channel mode...

[quote]new *******usermode*******: private msgs only from channel members[/quote]

White_Magic

2005-03-08 09:24

reporter   ~0009514

whats wrong making it a channel mode rather than a usermode?
anyway..if im not mistaken isnt the hybird thingie coming? wouldnt that totally wipe over this new channelmode/usermode? since it adds *!*@* to ignore anyway

w00t

2005-03-08 09:40

reporter   ~0009517

that idea only is usefull when a user is in one channel. what about when someone is in 2 channels , one channel has that chmode , and other channel not?
--------

I'd say that was what was wrong with making it a channel mode.

White_Magic

2005-03-08 10:23

reporter   ~0009520

grrrr i lost all i typed in reply dumb computer,

Obviously if ur in a room with 1 mode it and rooms without that mode the mode is present thus dominant,

like i said, the way i see it that the hybird thing will cover this mode + do more....

aquanight

2005-03-08 11:37

reporter   ~0009526

I don't think this should be a channel mode. If I don't want privmsgs from people not on the same channel, don't you think I should have the ability to do that, instead of having to beg to the channel (half)ops to set the mode? Besides, the mode affects a *user* not a *channel* so it would make more sense to be a *user*mode not a *channel*mode...

But otherwise, I would much rather see hybrid's callerid stuff right now... ;-)

syzop

2006-11-23 13:49

administrator   ~0012709

This should be done in a module :P

Issue History

Date Modified Username Field Change
2005-03-04 13:28 arbiter New Issue
2005-03-04 13:42 syzop Summary new usermode => new usermode: private msgs only from channel members
2005-03-04 14:44 Stealth Note Added: 0009401
2005-03-04 19:01 syzop Note Added: 0009425
2005-03-05 13:38 aquanight Note Added: 0009436
2005-03-05 13:45 syzop Note Added: 0009437
2005-03-06 09:50 White_Magic Note Added: 0009445
2005-03-06 10:33 arbiter Note Added: 0009450
2005-03-07 19:58 aquanight Note Added: 0009482
2005-03-08 09:24 White_Magic Note Added: 0009514
2005-03-08 09:40 w00t Note Added: 0009517
2005-03-08 10:23 White_Magic Note Added: 0009520
2005-03-08 11:37 aquanight Note Added: 0009526
2006-11-23 13:49 syzop Status new => closed
2006-11-23 13:49 syzop Note Added: 0012709
2006-11-23 13:49 syzop Resolution open => no change required