mIRC Home    About    Download    Register    News    Help

Print Thread
Chat lock command? #244807 30/03/14 10:44 AM
Joined: Mar 2014
Posts: 18
D
DvD_cD Offline OP
Pikka bird
OP Offline
Pikka bird
D
Joined: Mar 2014
Posts: 18
I want to make command, for locking the chat (nobody can type). But its not nobody! Only mod can type in the chat.
Code:
on *:TEXT:!lock:#: {
???
}

Re: Chat lock command? [Re: DvD_cD] #244808 30/03/14 11:28 AM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
All i can think of is put the channel +m.


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Re: Chat lock command? [Re: DvD_cD] #244809 30/03/14 12:26 PM
Joined: Mar 2004
Posts: 359
L
LostServ Offline
Fjord artisan
Offline
Fjord artisan
L
Joined: Mar 2004
Posts: 359
Originally Posted By: DvD_cD
I want to make command, for locking the chat (nobody can type). But its not nobody! Only mod can type in the chat.
Code:
on *:TEXT:!lock:#: {
???
}


Like the other poster said, you would need to set the channel +m for moderated. This means only voiced users and higher can talk.

Code:
on @*:text:!lock:#: {
  mode # +m
}

Re: Chat lock command? [Re: LostServ] #244810 30/03/14 01:05 PM
Joined: Mar 2014
Posts: 18
D
DvD_cD Offline OP
Pikka bird
OP Offline
Pikka bird
D
Joined: Mar 2014
Posts: 18
And

Code:
on @*:text:!unlock:#: {
  mode # -m
}

for unlock?

Re: Chat lock command? [Re: DvD_cD] #244811 30/03/14 01:33 PM
Joined: Mar 2004
Posts: 359
L
LostServ Offline
Fjord artisan
Offline
Fjord artisan
L
Joined: Mar 2004
Posts: 359
Yep, that will work.