|
Joined: Dec 2002
Posts: 2,958
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,958 |
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.
|
|
|
|
Joined: Dec 2002
Posts: 1,253
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,253 |
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.
|
|
|
|
Joined: Dec 2002
Posts: 2,779
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,779 |
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.
|
|
|
|
Joined: Dec 2002
Posts: 1,518
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,518 |
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
|
|
|
|
Joined: Dec 2002
Posts: 153
Vogon poet
|
OP
Vogon poet
Joined: Dec 2002
Posts: 153 |
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
|
|
|
|
Joined: Dec 2002
Posts: 153
Vogon poet
|
OP
Vogon poet
Joined: Dec 2002
Posts: 153 |
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.
|
|
|
|
Joined: Dec 2002
Posts: 2,779
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,779 |
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.
|
|
|
|
Joined: Dec 2002
Posts: 153
Vogon poet
|
OP
Vogon poet
Joined: Dec 2002
Posts: 153 |
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.
|
|
|
|
Joined: Dec 2002
Posts: 774
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 774 |
RFC1459: IRC messages are always lines of characters terminated with a CR-LF
|
|
|
|
Joined: Dec 2002
Posts: 124
Vogon poet
|
Vogon poet
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.
|
|
|
|
Joined: Sep 2003
Posts: 38
Ameglian cow
|
Ameglian cow
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
|
|
|
|
|