mIRC Home    About    Download    Register    News    Help

Print Thread
#213377 25/06/09 10:06 PM
Joined: Dec 2008
Posts: 1,483
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,483
Hello,

I want to suggest an opinion of one identifier that will return the currently connected server description, as the $serverip exist's i thought that you could also add the $serverdesc or something like that will return the currently $server description that the user is connected, I don't know if this can be with an other command or if it is already exists i search for it and didn't find any result's .

e.g: testuser using magic.testirc.com The MagiC server of TestIRC network

westor #213378 25/06/09 10:11 PM
Joined: Jul 2006
Posts: 4,020
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,020
Code:
$server($cid).desc
?


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #213379 25/06/09 10:30 PM
Joined: Dec 2008
Posts: 1,483
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,483
Not this, i main the currently mine connected server description

e.g: on /links command at the right after the server name it has the server description this.

Last edited by westor; 25/06/09 10:30 PM.
westor #213381 25/06/09 10:57 PM
Joined: Jul 2006
Posts: 4,020
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,020
Then you certainly want $link(N).info ?


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #213405 26/06/09 05:16 PM
Joined: Dec 2008
Posts: 1,483
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,483
Yes this but when i use the $link(N).info i must have the LINKS window open to use this other way the result is $null , how can i get the server info without opening the LINKS window?, This is what exactly said to add into the mIRC.

e.g: //echo my server: $serverdesc
or
e.g: //echo other server: $serverdesc(1).desc
or something like these or any other that will return the server link description.

Last edited by westor; 26/06/09 05:21 PM.
westor #213420 27/06/09 01:09 AM
Joined: Dec 2002
Posts: 3,015
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,015
The server description is not sent to IRC clients when they connect, which means mIRC would have to query the server for $serverdesc to work. No other identifier currently does this.

westor #213426 27/06/09 03:27 AM
Joined: Nov 2004
Posts: 822
J
Hoopy frood
Offline
Hoopy frood
J
Joined: Nov 2004
Posts: 822
Would this have any use in the long run?

Maybe I'm missing something here?

Jigsy #213433 27/06/09 02:57 PM
Joined: Dec 2008
Posts: 1,483
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,483
I want to say that, when you are using the $serverdesc identifier that will return the currently ($cid) connected server info.

e.g: RAW 312
312 <nick> <server> :<info>

westor #213435 27/06/09 05:02 PM
Joined: Jan 2003
Posts: 2,125
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,125
We understand what you're asking but Collective's point still stands. This information isn't available to mirc automatically (eg when connecting) - mirc has to explicitly request it. This is not the sort of thing identifiers (should) do.

qwerty #213442 27/06/09 10:44 PM
Joined: Dec 2008
Posts: 1,483
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,483
I think that identifier will not be so difficult to be added , also it will more helpful , any way if you take my idea good you can continue to add this or something like this , other way thanks for your time smile

westor #213447 28/06/09 02:17 AM
Joined: Oct 2003
Posts: 3,641
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,641
If it's not difficult to add, try implementing it for yourself. An exercise like this will illustrate exactly what the difficulty is-- incidentally, the same difficulty being described above. And hey, if you manage to implement it, you can use it before Khaled adds it (that is, if he adds it).

argv0 #213450 28/06/09 03:43 AM
Joined: Dec 2008
Posts: 1,483
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,483
hehe, the problem is that i don't know how to add this, i don't know C++ or any of these scripting languages , only mIRC Scripting , and i like it much better that all the others

westor #213454 28/06/09 04:51 AM
Joined: Oct 2003
Posts: 3,641
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,641
Then implement it in mIRC script (which is what I was implying you should do).

argv0 #213510 29/06/09 07:31 PM
Joined: Dec 2008
Posts: 1,483
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,483
Yes but i don't know how can i make it can you give me an example??

westor #214004 13/07/09 08:21 PM
Joined: Jan 2003
Posts: 1,057
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,057
Originally Posted By: westor
I want to say that, when you are using the $serverdesc identifier that will return the currently ($cid) connected server info.

e.g: RAW 312
312 <nick> <server> :<info>


Code:
raw <numeric>:<matchtext>:<commands>

Examples

The following script filters out the channels list numeric when you use the /list command.

raw 322:*mirc*:/echo 5 raw $numeric : $1-

Doqnach #214007 13/07/09 09:54 PM
Joined: Dec 2008
Posts: 1,483
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,483
LOL, What the point of your reply i ask said before like the 312 raw numeric not the 322, read again what i post to be added.

westor #214009 13/07/09 10:43 PM
Joined: Oct 2003
Posts: 3,641
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,641
Are you really that big of an idiot?

You asked for an example of the raw event, you got an example of how to use raw events. Maybe you should read the help file again. Are you expecting someone to write the exact script for you and call it an "example"? The point was to write the code yourself. Change the 2 to a 1, and be on your way. If you're *that* lazy or inept and want someone to write a script for you, ask in the Scripts & Popups section.

argv0 #214036 14/07/09 05:45 PM
Joined: Dec 2008
Posts: 1,483
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,483
If i wanted that or if i was lazy i wouldn't post anything, maybe the idiot person will be you, i asked an example from the currently subject not for 322 but for 312 and something about the $serverdesc theme, to giving me an example that how can i use the RAW commands i can see this by myself thanks, and better thinking before posting your idiot answer.

westor #214038 14/07/09 06:19 PM
V
vexed2
vexed2
V
Sorry, but i have to agree with argv0 here. An example of what could be done was given and you LOL'D at it. It might be that you need to explain yourself more clearly in future. But you aren't going to get it all scripted on here unless some good members are very generous.

westor #214039 14/07/09 06:43 PM
Joined: Jan 2007
Posts: 1,155
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,155
You are asking for help yet calling him an idiot?

raw 312:*:echo -s . $rawmsg


You figure it out.


Link Copied to Clipboard