mIRC Homepage
Posted By: bibadi how to do... - 25/01/03 09:10 AM
Well i want to when some one is querying me, to do an automated whois, and I want to do auto voice someone when he joins #]MoM[ and

on *:INPUT:#:{
if ((/* iswm $1) || ($ctrlenter)) return
var %1- = $1-
while ($istok(%1-, lol, 32)) %1- = $reptok(%1-, lol, 3Laughing Out Loud, 1, 32)
say %1-
halt
}

This only works in channels not in query's can someone help me with these 3 things please, thank you
Posted By: BlackAle Re: how to do... - 25/01/03 12:32 PM
/help ON input
/help ON open
/help ON text
/help ON join
Posted By: MonoSex Re: how to do... - 25/01/03 12:59 PM
Quote:
Well i want to when some one is querying me, to do an automated whois


Options-> IRC-> "Whois on querry".
Should work wink
Posted By: Hammer Re: how to do... - 25/01/03 01:06 PM
Q: Well i want to when some one is querying me to do an automated whois,
A: Alt -O / IRC / [X] Whois on Query

Q: I want to do auto voice someone when he joins #]MoM[
A: on @!*:JOIN:#]MoM[: mode $chan +v $nick

Q: This only works in channels not in query's.
A: on *:INPUT:*:{
Posted By: bibadi Re: how to do... - 25/01/03 01:09 PM
that first 1 i don;t get... where do i have 2 put it, and the 3 one, how can i make it work on queries?
Posted By: Hammer Re: how to do... - 25/01/03 01:26 PM
To expand:

Q: Well i want to when some one is querying me to do an automated whois,
A:
  1. On your menubar, select
    File
    Options (Alt -O)
  2. When the Options dialog opens up in treeview, click on
    IRC (which is underneath Connect and all of its options)
  3. You will see 2 columns of checkboxes. Make sure the 7th checkbox in the first column on the left is checked:
    [X] Whois on query


Q: This only works in channels not in query's.
A: You can use any of the following characters to designate what kind of window you want to capture the input for: *#?=!@

on *:INPUT:#: is for channels only
on *:INPUT:?: is for queries only
on *:INPUT:=: is for DCC Chat
on *:INPUT:!: is for fserve
on *:INPUT:@: is for custom windows
on *:INPUT:*: is for all windows

So, you either want to put the actual code of the on INPUT inside and alias you call from both on *:INPUT:#: and on *:INPUT:?: or perhaps use simply on *:INPUT:*: (all windows) and just use the code itself inside the event since you don't need it elsewhere.
Posted By: xrn0id Re: how to do... - 25/01/03 03:40 PM
for the voice on join, put this in your remotes.

Code:
on *:JOIN:#]MoM[: {
  if ($nick == [color:blue]your buds nick[/color] ) {
    /mode #]MoM[ +ooo $nick
  }
}

Posted By: Collective Re: how to do... - 25/01/03 03:44 PM
xrn0id please close your code tags, it stretches the page.
© mIRC Discussion Forums