mIRC Home    About    Download    Register    News    Help

Topic Options
#138651 - 04/01/06 05:42 PM ban on /me or /ame
Hooligan Offline
Ameglian cow

Registered: 07/04/05
Posts: 26
Need a lil script to do that ...

Top
#138652 - 04/01/06 05:45 PM Re: ban on /me or /ame
Hooligan Offline
Ameglian cow

Registered: 07/04/05
Posts: 26
On @*:ME:*:#cs: {
if ($nick isreg $chan) ban -k $chan $nick 3 nachuj! $+($nick,.)
}

this one doesn't work for me...

Top
#138653 - 04/01/06 05:53 PM Re: ban on /me or /ame
CtrlAltDel Offline
Hoopy frood

Registered: 15/06/03
Posts: 994
/help on action

should tell you what you need (/me and /ame are action commands)
_________________________
I refuse to engage in a battle of wits with an unarmed person. wink

Top
#138654 - 04/01/06 06:23 PM Re: ban on /me or /ame
Hooligan Offline
Ameglian cow

Registered: 07/04/05
Posts: 26
aint helping much ...

Top
#138655 - 04/01/06 06:33 PM Re: ban on /me or /ame
RaPaTTaCK Offline
Ameglian cow

Registered: 04/01/06
Posts: 20
Loc: Overhere
/me just sends a 'action' message in private or public. Nothing less, nothing more.
_________________________
Obey

Top
#138656 - 04/01/06 07:17 PM Re: ban on /me or /ame
MikeChat Offline
Hoopy frood

Registered: 12/12/02
Posts: 1245
Loc: California, doooood
Quote:
On @*:ME:*:#cs: {
if ($nick isreg $chan) ban -k $chan $nick 3 nachuj! $+($nick,.)
}

this one doesn't work for me...


On @*action:*:#cs: {
if ($nick isreg $chan) ban -k $chan $nick 3 nachuj! $+($nick,.)
}

Quote:

on TEXT

The on TEXT event triggers when you receive private and/or channel messages.


Format: on <level>:TEXT:<matchtext>:<*><?><#[,#]>:<commands>
Example: on 1:TEXT:*help*:#mirc,#irchelp:/msg $nick what's the problem?

The on ACTION and on NOTICE events use exactly the same format as on TEXT, and trigger on an action and on a notice event respectively.

The match text can be a wildcard string, where:

* matches any text
& matches any word
text matches if text contains only this word
text* matches if text starts with this word
*text matches if text ends with this word
*text* matches if text contains this word anywhere

The match text can also be a regular expression. See the $ prefix section in Access Levels.

The location where this event occurrs can be specified using:

? for any private message
# for any channel message
#mirc for any messages on channel #mirc
* for any private or channel messages

clip 8<

Top
#138657 - 04/01/06 10:25 PM Re: ban on /me or /ame
NeUtRoN_StaR Offline
Fjord artisan

Registered: 06/03/05
Posts: 212
Quote:

isreg nickname v1 is a normal nick on channel v2


what does this mean?

Top
#138658 - 04/01/06 10:55 PM Re: ban on /me or /ame
FiberOPtics Offline
Hoopy frood

Registered: 05/02/04
Posts: 2019
Loc: Leuven, Belgium
Means it's a regular user, no voice, no op, no halfop etc., so no nickmode.
_________________________
Gone.

Top
#138659 - 04/01/06 11:00 PM Re: ban on /me or /ame
RusselB Offline
Planetary brain

Registered: 03/08/04
Posts: 7252
Loc: Ontario, Canada
When someone joins a channel/room, they join it as a regular user. After that, they might be opped, half-opped, and/or voiced. That would return the results checking to see if then person with nickname is a regular user in the specified channel. When a person is opped, half-opped or voiced, then they are no longer a regular user in that channel.

In an if/else statement, the first item can be referenced using $v1 and the second item using $v2.

Top
#138660 - 05/01/06 12:09 AM Re: ban on /me or /ame
NeUtRoN_StaR Offline
Fjord artisan

Registered: 06/03/05
Posts: 212
thank u both
seems obvious now

Top
#138661 - 05/01/06 02:23 AM Re: ban on /me or /ame
MikeChat Offline
Hoopy frood

Registered: 12/12/02
Posts: 1245
Loc: California, doooood
/me is making a note to not join #cs

Top
#138662 - 05/01/06 02:36 AM Re: ban on /me or /ame
FiberOPtics Offline
Hoopy frood

Registered: 05/02/04
Posts: 2019
Loc: Leuven, Belgium
Eh? o.O
_________________________
Gone.

Top
#138663 - 05/01/06 03:23 AM Re: ban on /me or /ame
genius_at_work Offline
Hoopy frood

Registered: 08/10/05
Posts: 1741
Sounds like a pretty harsh channel. Wouldn't it be easier to set the channel to moderated?

-genius_at_work

Top
#138664 - 05/01/06 08:50 PM Re: ban on /me or /ame
Hooligan Offline
Ameglian cow

Registered: 07/04/05
Posts: 26
thnx to all now it works fine and now one more Q.

in popups .Ban

i want it to place ban like this -o+b & kick

my line ".Ban, Kick:.mode # -o+b $1 | ban $$1 3 | kick # $$1" doesn't work.

Top
#138665 - 05/01/06 08:56 PM Re: ban on /me or /ame
Hooligan Offline
Ameglian cow

Registered: 07/04/05
Posts: 26
a lil tip

On @*:action:*:#cs: {


but not

On @*action:*:#cs: {

Top