mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2005
Posts: 64
V
Vinniej Offline OP
Babel fish
OP Offline
Babel fish
V
Joined: Apr 2005
Posts: 64
Ok, i dont know why it doesnt work, it seems good...

Quote:
on owner:*:join:#: {
mode # +o $nick
msg # $nick is my owner.
}


And owner is good in "users". But it won't work. I dont know why... Who can tell me why it isnt good.... confused

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
remove the * in the ON JOIN event

The only thing I've gotten to work in front of the * in an ON JOIN event is if it's written as ON me:*:JOIN:#

With the me it in there, it only activates when you join the channel (handy for a bot that needs to do things when it first joins a channel)

Joined: Apr 2005
Posts: 64
V
Vinniej Offline OP
Babel fish
OP Offline
Babel fish
V
Joined: Apr 2005
Posts: 64
Still doesnt work... crazy

Quote:
on owner:join:#: {
mode # +o $nick
msg # $nick is my owner.
}

Last edited by Vinniej; 03/08/05 01:18 AM.
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Does the bot have ops? If it doesn't then it can't op someone else.

Another way you might look at doing it is using mIRC's AOP command. /help /aop

Joined: Apr 2005
Posts: 64
V
Vinniej Offline OP
Babel fish
OP Offline
Babel fish
V
Joined: Apr 2005
Posts: 64
Hmm i put the script in an other file, and now it works, thx anyway.

I dunno what is wrong on my script, but ok.

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Sometimes that's all it takes...there's nothing wrong with the script at all, it just needs to be put into a new file. That problem has been mentioned, usually indirectly, in many posts, and I've found that I've had to do the same thing with my bot a couple of times over the past couple of years. Not too bad if you don't have a lot of scripts loaded.

Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
There's another on *:JOIN:#: event before this one in your script file, only the first matching event is executed, all other (matching) events in the same script file are ignored.

This is the case for ALL events, not just on JOIN.

Joined: Apr 2005
Posts: 64
V
Vinniej Offline OP
Babel fish
OP Offline
Babel fish
V
Joined: Apr 2005
Posts: 64
Quote:
There's another on *:JOIN:#: event before this one in your script file, only the first matching event is executed, all other (matching) events in the same script file are ignored.

This is the case for ALL events, not just on JOIN.
Didnt new that. But...

In my private channel it works, 2 join events.. confused

Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
If 2 on JOIN events trigger at the same time, they are in different files. Or both actions are in the same event in the same file.
You can have more triggers of the same type, as long as they match on different stuff. For example, all these events will work:
on *:TEXT:!blah:#:echo -a -blah in chan
on *:TEXT:!blub:#:echo -a -blub in chan
on *:TEXT:!blah:?:echo -a -blah in privmsg
on *:TEXT:!blub:?:echo -a -blub in privmsg

But in the following lines, only the first will ever trigger
on *:TEXT:*:*:echo -a I catch everything
on *:TEXT:!blub:#:echo -a I never get executed

Also modifiers like @*:TEXT:... and limiting to specific channels etc. can change which event gets called.


Link Copied to Clipboard