mIRC Home    About    Download    Register    News    Help

Print Thread
Page 2 of 2 1 2
#36617 17/07/03 10:54 AM
Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
If Strider is getting refusal from the server for the reason he quoted then either HOP is an IRC command where he chats or his script is using HOP as an alias for a command he doesn't have access to, I was just helping him rule out the first bit. He'll have to check his aliases otherwise.

Note this comment from KingTomato which is correct: hop is to rejoin a channel that ur presently in.

Your note that on some IRCd's the key is sent as a part message, all I can say to that is that it comes down to sloppy IRCd coding as I cannot see the key being actually sent by mIRC in the @Raw window.

#36618 17/07/03 11:05 AM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
Historical blurb:

If I recall correctly, there have been several IRCds that I have coded or worked on, most of them dreamforge or bahamut based, that have had a helpop system. Opers (or designated non-opers) who were set a certain user mode received helpop notices, similar to chatops, but sendable by anyone. The user can't see the result of the command, but every +h (or whatever usermode it was) client could. The command, if I recall correctly, was /helpop [msg] but was also aliased in the IRCd as /hop [msg]. I originally saw this in one of the last versions of dreamforge that DuffJ did. It was later removed on DALnet, but I put it back for a couple of the networks I was coding for and tweaked it a bit...DALnet's (for example) was oper-only...mine was a user-mode that services could set on any user who had hop access, oper or not.


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
#36619 17/07/03 02:43 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
I've never seen it go to /hop, but thats possible, however I know that /helpop is generally an alias for /help. It was created because most clients have a builtin /help command so they decided rather than /raw help, /helpop was a better idea.

#36620 17/07/03 06:47 PM
Joined: Dec 2002
Posts: 1,527
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
Code:
alias _hop {
  var %rejoin $active
  part %rejoin
  timer 1 1 join %rejoin $1
}
  


to use just type /_hop KEY

thats the best workaround i can think of for now


D3m0nnet.com
#36621 17/07/03 09:26 PM
Joined: Dec 2002
Posts: 155
S
Strider Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Dec 2002
Posts: 155
I'm getting refusal for trying to set mode +h to myself, which is how pheonix can "supposedly" use an ownerkey (or hostkey) with /hop on an IRCX server. Just check his alias.

And btw, I tested what Raccon said, and I CAN see the key being sent in the @Raw window. It only happens when you use /hop to join another channel.

If i'm in #chan1 and then I use "/hop #chan2 key" this is what I get:

-> IRCX-CITY-KT-UK PART #chan1 :key
-> IRCX-CITY-KT-UK JOIN #chan2 key

#36622 17/07/03 09:33 PM
Joined: Dec 2002
Posts: 155
S
Strider Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Dec 2002
Posts: 155
I am fully aware that that can be easily done. I even mentioned it, but what I like about /hop is that it doesn't close the channel window when you use it to rejoin the same channel.

alias cycle { raw -q PART $active $+ $cr $+ JOIN $active $1 }

Just in case you ever need it, that's how you make it without needing to use timers.

#36623 17/07/03 09:40 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Use $crlf, there are a couple of IRCds (pircd comes to mind) that will ignore your message if it ends with just $cr, so use $crlf to be safe.

#36624 17/07/03 09:55 PM
Joined: Dec 2002
Posts: 155
S
Strider Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Dec 2002
Posts: 155
Yeah, you're right (I never knew that, btw). But I like to save the extra byte on servers that don't do that. :tongue:

And I just wonder, what's the correct way? Should the servers require the user to use $crlf, or should $cr be good enough?

Last edited by Strider; 17/07/03 09:59 PM.
#36625 17/07/03 10:02 PM
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
RFC1459: IRC messages are always lines of characters terminated with a CR-LF


Code:
//if ( khaled isgod ) echo yes | else echo no
#36626 23/07/03 08:39 PM
Joined: Dec 2002
Posts: 124
B
Vogon poet
Offline
Vogon poet
B
Joined: Dec 2002
Posts: 124
uhh, mode $me +h is supported on that one network that doesn't like people using another client than their crappy own.

#36627 13/09/03 06:32 AM
Joined: Sep 2003
Posts: 38
S
Ameglian cow
Offline
Ameglian cow
S
Joined: Sep 2003
Posts: 38
i started a double topic sorry for that, but using hop in 1 command:
//part #channel | raw -q join #channel <key>
my only problem, the loss of all chatted lines. I don't wanna fill my screen from my logs, a -k option would be so much easier

Page 2 of 2 1 2

Link Copied to Clipboard