View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0003191 | unreal | ircd | public | 2007-01-06 01:37 | 2007-01-09 08:04 |
| Reporter | Casey | Assigned To | |||
| Priority | normal | Severity | feature | Reproducibility | N/A |
| Status | closed | Resolution | no change required | ||
| Product Version | 3.2.7 | ||||
| Summary | 0003191: Chan Mode to stop all Capital Letters | ||||
| Description | new Chan Mode to stop all Capital Letters when someone uses all Capital Letters. | ||||
| 3rd party modules | |||||
|
|
So would this only affect text if 100% of it is caps? Or would it simply convert all caps to lower case? |
|
|
100% caps -- block the message and say it has been blocked. with the percentage to remove the spaces from being counted and numbers and symbols and all that from being counted for the percentage. percentage : number of letters -- mode X 100%:5 block the message and say it has been blocked -- or convert it to lowercase 100% - convert to lowercase thinking of these things that could be for the new mode or modes |
|
|
Here is a basic module I made a while ago for this same purpose. It will add a new chanmode, d, which will make messages lowercase if they are 100% caps. I am sorry for the appauling quality of the code as my knowledge of C is extremely limited. If anyone wants to improve the code or add extra functionality, please feel free. The module can be found here: http://127dot0dot0dot1.com/nocaps.c ~Phil~ |
|
|
I have just realised a flaw in the module I uploaded. It sees characters (e.g. !,.; etc.) as lower case. My C isn't good enough to correct this however someone else may be able to. |
|
|
it may not be good enough to correct since i suspect you didnt make ;P anywho...this seems kind of like a stupid idea...why not just block them from your channel? or use a spamfilter? |
|
|
"it may not be good enough to correct since i suspect you didnt make" You are extremely doubting and I suggest you keep your wrongfull suspicions to yourself in future. I have been coding languages such as PHP, VB, Java, Pascal, Javascript and C# for many years however I find C a very hard language to get my head around. Perhaps you should stop passing judgement and correct it yourself? Oh, and as for the "stupid idea" just because you can see no use for it, it doesn't mean that nobody else can. You are an extremely small minded individual. |
|
|
rofl, this isnt going to become a back and forth thing. when you say "i wrote it, but i cant fix it" doesnt make sense. further your inet threats mean nothing to me! and it is a stupid idea, there's no reason for it to be in the core. as i said, use spamfilter, ban them from the channel or get a channel bot. simple |
|
|
As far as I was aware, this bug tracker was about improving unrealircd. Why have any of the features? Chmodes C, c, T, S and f all do things similar to this when you could infact just ban those who use the things they prevent. And as for not being able to improve it, I cannot think of a method to do so. If you'd like to suggest one, I'd be more than happy to impliment it. My initial thinking was check if the inputted chars are in a pre-defined list that I set out. However, this wouldn't be too effective as there are not just standard English characters that could be used. The second, and possibly better than the last idea was to check if each inputted character is in a list of english lowercase letters and numbers and then assume that anything else is uppercase. This would work on the most part and I'll add it in tonight unless anyone else has any better ideas on a solution to the problem. Maybe C has functions to check this. All I can find are isNumeric() and isString(). The former checks the data type of the variable to see if it is a numeric type, int float etc. and the latter checks if the variable is of string type. However, what we are dealing with in this module is variables of the char type. And, as it says in the comments at the top, it was adapted from another module written by a friend. The only thing which I wrote was the function to check for and strip the caps. This is all very basic programming structure that is present in nearly every language and with a bit of reading could be written by anyone. As I said, if you want to help with the improvement of this brilliant IRCD then feel free to edit the module as you wish and repost, else keep your judgements to yourself. simple |
|
|
Phil, maybe you're new to this bug tracker, maybe not, though i've been intructed to be "nice" i still think that its a bad idea. as i've stated twice already, kick them from the channel, or use the spamfilter, plain and simple. and btw, i've contributed a lot to this "wonderful" IRCd, dont get so bent out of shape when someone doesnt like your idea or questions whether you can do it or not, because the way some people say stuff seems to me like they cant. Anywho, a module is fine if you want, but it doesnt seem like a thing to put in the core or as an official module, spamfilter iirc will do this fine, or just kick the "noobs" from your channel :) have a good one |
|
|
"or use the spamfilter" wow, thats the dumbest thing i've ever heard.. you do realize that using the spamfilter for stuff like that is a huge waste of cpu time, using too many spamfilters can easily bring your network to a dead lock during a large botnet |
|
|
Can we not make this an arguement... |
|
|
DjGrr, we use spamfilters on our network quite a bit with very little problem ;P CPU usage shouldnt be an issue, and i've stated other choices, as well as making his own module. and yeah, this is becoming one big arugment, which is kind of useless, so have fun with it |
|
|
bla bla :P On-topic: I think this is better left to a module. As for feedback or getting help on your mod, I would think the 'Unreal3.2 Modules' section would be the best place for that (though no success guaranteed). Don't know if you were looking for those, but.. isalpha() isalnum() isupper() etc might include some C functions you were looking for. Oh and yeah non-english charsets such as russian/etc are pretty much impossible to support all at the same time, but that's another thing :P. Hope these hints help. EDIT: Of course with "'Unreal3.2 Modules' section" I mean on forums.unrealircd.com |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2007-01-06 01:37 | Casey | New Issue | |
| 2007-01-06 06:15 | Shining Phoenix | Note Added: 0013007 | |
| 2007-01-06 17:46 | Casey | Note Added: 0013013 | |
| 2007-01-06 18:12 | Phil | Note Added: 0013014 | |
| 2007-01-06 18:35 | Phil | Note Added: 0013015 | |
| 2007-01-06 19:00 | Casey | Note Edited: 0013013 | |
| 2007-01-06 19:04 | Casey | Note Edited: 0013013 | |
| 2007-01-06 21:26 | Bricker | Note Added: 0013019 | |
| 2007-01-07 08:05 | Phil | Note Added: 0013023 | |
| 2007-01-07 08:09 | Phil | Note Edited: 0013023 | |
| 2007-01-07 10:01 | Bricker | Note Added: 0013024 | |
| 2007-01-07 10:51 | Phil | Note Added: 0013025 | |
| 2007-01-07 10:52 | Phil | Note Edited: 0013025 | |
| 2007-01-07 20:34 | Bricker | Note Added: 0013026 | |
| 2007-01-08 13:16 | djGrrr | Note Added: 0013031 | |
| 2007-01-08 13:53 | Stealth | Note Added: 0013033 | |
| 2007-01-08 21:18 | Bricker | Note Added: 0013034 | |
| 2007-01-09 08:04 | syzop | Status | new => closed |
| 2007-01-09 08:04 | syzop | Note Added: 0013043 | |
| 2007-01-09 08:04 | syzop | Resolution | open => no change required |
| 2007-01-09 08:05 | syzop | Note Edited: 0013043 |