mIRC Home    About    Download    Register    News    Help

Print Thread
#29496 13/06/03 10:12 AM
Joined: Dec 2002
Posts: 1,237
T
Hoopy frood
OP Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,237
Right now in my script, all commands that go to Channel services i.e. ChanServ etc are forced to be performed in their own separate windows:

Chanserv=@ChanServ
NickServ=@NickServ
MemoServ=@MemoServ
BotServ=@BotServ

When typing the command syntax in the designated window you use "/msg" to do it obviously because if you type /Chanserv the alias i set up opens the window (i hope i still make sense)...How can I get the following text to not show and I will use the NickServ identify command as an example:


[03:05:35] -> *NickServ* identify yada yada
-


I do not want the text I send to echo in the status window let alone anywhere else (hence the reason why I have it forced to only be perfomed in its own window.) I hope this isn't confusing but any ideas? Thanks in advance

#29497 13/06/03 10:24 AM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Why not use /.msg nickserv identify yada yada?

#29498 13/06/03 10:42 AM
Joined: Dec 2002
Posts: 1,237
T
Hoopy frood
OP Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,237
something like that but having it convert "/msg" to what you suggested. so when someone types:

/msg NickServ identify yada yada

Then it will replace "/msg" with whatever you said so it doesn't echo back, but still sends the command. I only want this to work for these four windows I have set up...Does this make sense? I just don't know how exactly to go about doing this is all.

#29499 13/06/03 10:51 AM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Hopefully I understood you correctly...
Code:
on *:INPUT:@nickserv:{
  if ( $1 == /msg ) {
    .msg $2-
    halt
  }
}

If someone types /msg NickServ identify yada yada in @nickserv with that code then it will send the text but hide that it is doing it.

#29500 13/06/03 11:26 AM
Joined: Dec 2002
Posts: 1,237
T
Hoopy frood
OP Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,237
Collective, this code is what i have that sends a reply if someone types /msg ChanServ anywhere other than its proper channel this works for all of the services....

Code:
  
On *:Input:*: {
  if (/msg* iswm $1-) && (*serv iswm $2) && ($active != $+(@,$2)) { /echo -a All $2 commands should be typed in the  $+(@,$2) Window! Please type: 12/ $+ $2  | halt }
}


My problem lies with the code you just supplied and this code They clash and the command echos in the status window. However if i take out my code, then yours works fine ....any way this can be fixed so that they both work together? Thanks again

Basically make one code that works for both purposes and the four windows in question...

Last edited by The_Game; 13/06/03 11:27 AM.
#29501 13/06/03 11:30 AM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Code:
on *:INPUT:*:{
  if ( $1 == /msg ) && (*serv iswm $2 ) {
    if ( $active != $+(@,$2) ) {
      echo -a All $2 commands should be typed in the  $+(@,$2) Window! Please type: 12/ $+ $2 
      halt
    }
    else {
      .msg $2-
      halt
    }
  }
}

#29502 13/06/03 11:41 AM
Joined: Dec 2002
Posts: 1,237
T
Hoopy frood
OP Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,237
There we go now it works the way I intended it...Thanks Collective


Link Copied to Clipboard