PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: Technics on 05 February, 2004, 00:07:15

Title: CAPS
Post by: Technics on 05 February, 2004, 00:07:15
how can i write a script that will convert all text written in main from CAPS to normal letters unless its a op....

n e help would b great.....



safe


Technics
Title:
Post by: plop on 05 February, 2004, 00:40:14
can cause trouble on other scripts, make sure it's procest as last in line.
function DataArrival(user, data)
   if( strsub(data, 1, 1) == "<" ) and (user.bOperator == nil) then
      local s,e,msg = strfind(data, "%b<>%s*(.*)")
      SendToAll(user.sName, strlower(msg))
      return 1
   end
end

plop
Title:
Post by: Technics on 05 February, 2004, 01:10:19
nice 1 cheers :-)
Title:
Post by: NotRabidWombat on 05 February, 2004, 04:26:06
That won't work with !me.

-NotRabidWombat