mIRC Home    About    Download    Register    News    Help

Print Thread
detecting all caps #127140 09/08/05 06:37 PM
Joined: May 2005
Posts: 449
bwr30060 Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: May 2005
Posts: 449
Is there a way to detect if a query is in all caps and close it and give a message if so? Thanks.

Re: detecting all caps #127141 09/08/05 06:49 PM
Joined: Feb 2004
Posts: 2,019
FiberOPtics Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
on ^*:open:?:*: if ($isupper($1-)) { .msg $nick TOO MANY CAPS | halt }


Gone.
Re: detecting all caps #127142 09/08/05 06:51 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Code:
on $^*:open:?:/^[A-Z]+$/:{ 
  msg $nick Change your nick, I don't like all uppercase. 
  haltdef 
}


New username: hixxy