mIRC Home    About    Download    Register    News    Help

Print Thread
Page 2 of 2 1 2
C
Crosz
Crosz
C
Ok no problem maybe am doing something wrong. I am getting tired anyway. Its 4:26am here so am taking a break thanks for all the help anyay smile

I`ll look at it fresh tomorrow

am running it on the lastest version of unrealircd and auspice services 2.8.x if that was to help, Anyway goonite and thanks again. wink

Joined: Mar 2004
Posts: 540
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
The ircd and the services wouldnt really matter. You might be running another script that is interfering with this one. Something like nscript or P&P. I dont know but it might be catching and halting the rawmode before this script can catch it. Try moveing this script up to the first slot.

S
Sigh
Sigh
S
There is actually an event that responds to you being made a channel owner (+q), not documented in the help file however:

on *:owner:#:if ($opnick = $me) msg # Thanks for the +q $nick

C
Crosz
Crosz
C
ok that last on works great. And now it does not interfear with the +a command all i need now is -q text for that code

And what if i want the bot to answer to anyone getting +q or -q not just me?

Last edited by Crosz; 25/08/04 09:40 AM.
Joined: Mar 2004
Posts: 540
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
Well if owner works Ill bet deowner does
on *:owner:#: msg $chan $opnick wow damn your powerful sexy now
on *:deowner:#: msg $chan $opnick dont make me laugh at your pitiful exuse of power

C
Crosz
Crosz
C
yep it did. Cool! Just to get it to do other users now.
Could i not use owner for other nicks?

Joined: Mar 2004
Posts: 540
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
Could you not? You mean just for you? if ($opnick == Yournick) { msg blah }

C
Crosz
Crosz
C
It all works great thanks i miss read your post lol

all i see now is code.

one last thing i forgot about

e
is there code for +e and -e sorry! forgot about it this morning

Joined: Mar 2004
Posts: 540
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
You said you are using unrealircd so +e is a channel exception what were you intedning to do? Match the exception to a nick in the room?

C
Crosz
Crosz
C
yes that was the idea.
I thought it was a ban exception.

But i would like to do it still thanks

Joined: Mar 2004
Posts: 540
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
Well yes it is a ban exception.
Cheap way and clunky
Code:
 on *:rawmode:#: { 
  if (+e isin $1) { 
    var %x = 1
    var %y = $ialchan($2,$chan,0)
    :begin
    if (%x <= %y) {
      echo $chan (Exception $2 matched was set for $ialchan($2,$chan,%x) $+ )
      inc %x
      goto begin
    }
  }
}
 

C
Crosz
Crosz
C
Guess what nothing
rawmode for e is like q on this server or mirc that am using rather

Joined: Mar 2004
Posts: 540
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
well im guessing you have a rawmode before this one that is halting that

C
Crosz
Crosz
C
yes raw mode + and -a

on 1:rawmode:#: if (+a === $1) { /msg $chan great hilly oppessss something +a }
on 1:rawmode:#: if (-a === $1) { /msg $chan great hilly oppessss something -a }

C
Crosz
Crosz
C
its ok i worked it out.

just incase anyone else is ever looking for it here it is


on 1:rawmode:#: if (+a === $1) { /msg $chan great hilly oppessss something +a } | if (-a === $1) { /msg $chan great hilly oppessss something -a } | if (-e === $1) { /msg $chan great hilly oppessss something -e } | if (+e === $1) { /msg $chan great hilly oppessss something +e }

and heres the code for a+ -a / +e -e / +q - q that all works together


on 1:rawmode:#: if (+a === $1) { /msg $chan great hilly oppessss something +a } | if (-a === $1) { /msg $chan great hilly oppessss something -a } | if (-e === $1) { /msg $chan great hilly oppessss something -e } | if (+e === $1) { /msg $chan great hilly oppessss something +e }
on *:owner:#: msg $chan $opnick wow damn your powerful sexy now
on *:deowner:#: msg $chan $opnick dont make me laugh at your pitiful exuse of power


Joined: Dec 2002
Posts: 2,884
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,884
All of the suggested code you've been given so far will break if someone sets several modes at once (ie. /mode +im-oa). You might want to take a look at the code I pasted here which should work with any mode set possible, then you can just use the relevant signal events to put your code in.

Joined: Aug 2004
Posts: 101
D
Vogon poet
Offline
Vogon poet
D
Joined: Aug 2004
Posts: 101
btw

if (+*a* iswmcs $1) which was mentioned before is incorrect.. it will also match +o-a for example (the first * of the wildmask matched with 'o-' )
You should use a regex for such sort of matching. eg:
if ( $regex($1,/\+[^-]*a/i) )


Edit: I started writing the post before I saw starbucks_mafia's one...

Last edited by dr_Eamer; 25/08/04 12:41 PM.
Page 2 of 2 1 2

Link Copied to Clipboard