mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Aug 2014
Posts: 26
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Aug 2014
Posts: 26
Hello, I needed some help Because I am currently using a Common Anti link.
Now the thing is That it is being used for a twitch.tv bot..
Now I do something like !permit stracked
It permits stracked
But if my name is Actually Stracked then It wont let me post the link and purge me.
Now this is not the problem, but a program called Better twitchTV Messes up some caps in the names so Sometimes it Would put a Upper case letter when it isnt.
I need help to not have this caps sensibility.

Here is the script btw

Code:
on $@*:text:*:#:{
  if ($regex($1-,/.+\.(com|co|uk|net|org|gov|tv|edu|fm)/iS)) && ($nick !isop $chan) {
    if (!$istok(%permit,$nick,32)) {
      .timerban 1 1 /msg $chan /timeout $nick 1
      msg $chan Please, $Nick Ask for mods permissions to post links!
    }
  }


  noop $regex($1-,/^!(del|alwayspermit|permit)\s(\S+)/iS) { 
    if ($regml(1) == alwayspermit) && ($nick isop $chan) {
      if ($istok(%permit,$regml(2),32)) {
        msg $chan $regml(2) is already on always permit list
      }
      else {
        set %permit $addtok(%permit,$regml(2),32)
        msg $chan $regml(2) You are now always permited to post links
      }
    }
    if ($regml(1) == permit) && ($nick isop $chan) {
      set %permit $addtok(%permit,$regml(2),32)
      .timerunset 1 30 set %permit $remtok(%permit,$regml(2),1,32)
      msg $chan $regml(2) You have 30 seconds to post a link in here
    }
    if ($regml(1) == del) && ($nick isop $chan) {
      if ($istok(%permit,$regml(2),32)) {
        set %permit $remtok(%permit,$regml(2),1,32)
        msg $chan $regml(2) erased sucessully from always permit list
      }
      else {
        msg $chan $regml(2) is not on always permit list
      }
    }
  }
}

Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
So, if i understand correct, you want when some one has the first of the nickname CAPITAL (e.g: Westor) to kick him from the channel? or you want an code that when YOU writing the first grammar will be capital (e.g: Hello room) ?


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Aug 2014
Posts: 26
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Aug 2014
Posts: 26
Err no...
What I want is that For example lets make it this way:

<Mod> : !permit stracked
stracked: <link>

That is normal But If This happens

<mod> : !permit stracked
Stracked: <link>
Bot::: Purge Stracked because he isnt "stracked"


What I want:

<mod> : !permit stracked
stracked: <link>
Stracked: <link>

So it doesnt Matter if he Has Capitals or not It will permit him eitherway.

Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
Nothing in your (syntactically incorrect) script is case sensitive.

Joined: Aug 2014
Posts: 26
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Aug 2014
Posts: 26
Well it does not work ..
I do !permit stracked and I can post the link
I do !permit Stracked and I cant post it...

Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
then use $lower($regml(2)) for the code


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
$istok() isn't case-dependent so nothing in the script you've posted is causing this problem. Do you have another script loaded which could be causing this?

Joined: Aug 2014
Posts: 26
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Aug 2014
Posts: 26
I have plenty of scripts. Would you like for me to put them all in a spoiler?

Altough I dont think any of these should be giving a problem

Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Not all of them, just any on TEXT events that might be triggering and causing this.


Link Copied to Clipboard