mIRC Home    About    Download    Register    News    Help

Print Thread
#9409 02/02/03 09:14 PM
Joined: Jan 2003
Posts: 40
V
Ameglian cow
OP Offline
Ameglian cow
V
Joined: Jan 2003
Posts: 40
Ok .. lets go crazy .. i wanna know how to create a popup in "Nicklist" which takes the follow instance:
If i am a @ .. the popup of nicklist (give voice, op, ban, kick) show me that popup .. and if i am not an @ on that channel the popup will not appear .. maybe will put some regular optiones such us (ignore, dcc chat, whois, dns, etc)
Do you stand me ?
I hope so .. thanks .. ;P

Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
Code:

menu nicklist {
  Ignore: ignore $1 2
  DCC Chat: dcc chat $1
  Whois: whois $1
  Whois (idle): whois $1 $1
  DNS: dns $1
  -
  $iif($me isop $chan,Voice): mode $chan +vvvv $1 $2 $3 $4
  $iif($me isop $chan,DeVoice): mode $chan -vvvv $1 $2 $3 $4
  $iif($me isop $chan,Op): mode $chan +oooo $1 $2 $3 $4
  $iif($me isop $chan,DeOp): mode $chan -oooo $1 $2 $3 $4
  $iif($me isop $chan,Ban): mode $chan +bbbb $address($1,2) $address($2,2) $address($3,2) $address($4,2)
  $iif($me isop $chan,UnBan): mode $chan -bbbb $address($1,2) $address($2,2) $address($3,2) $address($4,2)
  $iif($me isop $chan,Kick): kick $chan $snick($chan,1-4) Get lost!
  $iif($me isop $chan,Kick with reason): kick $chan $snick($chan,1-4) $$?="Why are you kicking them?"
}



DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
Joined: Jan 2003
Posts: 94
S
Babel fish
Offline
Babel fish
S
Joined: Jan 2003
Posts: 94
or a bit smaller code:

Code:
menu nicklist {
  Ignore:ignore $1 2
  DCC Chat:dcc chat $1
  Whois:whois $1
  Whois (idle):whois $1 $1
  DNS: dns $1
  -
  $iif($me isop $chan,Control)
  .Voice:mode $chan +vvvv $1 $2 $3 $4 
  .DeVoice:mode $chan -vvvv $1 $2 $3 $4
  .Op:mode $chan +oooo $1 $2 $3 $4
  .DeOp: mode $chan -oooo $1 $2 $3 $4
  .Ban:mode $chan +bbbb $address($1,2) $address($2,2) $address($3,2) $address($4,2)
  .UnBan:mode $chan -bbbb $address($1,2) $address($2,2) $address($3,2) $address($4,2)
  .Kick:kick $chan $snick($chan,1-4) Get lost!
  .Kick (reason):kick $chan $snick($chan,1-4) $$?="Why are you kicking them?"
}


-
E-Mail: mirc_sabby@hotmail.com
Network: irc.enterthegame.com
Channel: #Helpdesk
Joined: Jan 2003
Posts: 40
V
Ameglian cow
OP Offline
Ameglian cow
V
Joined: Jan 2003
Posts: 40
thnx so much ,you are very helpfully

Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
$snick($chan,1-4) actually returns the first selected nick. I'd go for $gettok($snicks,1-4,44) instead.

Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
I'd go for $replace($1-4,$chr(32),$chr(44)) . That's because using $snicks or $snick() always presents the danger of a "string too long error" on fairly large channels. $1-4 works always.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
true smile


Link Copied to Clipboard