|
Joined: Dec 2002
Posts: 155
Vogon poet
|
OP
Vogon poet
Joined: Dec 2002
Posts: 155 |
It would be nice to have a switch (something like -k<key>) that allowed the user to specify the key that mIRC should rejoin the channel with, when the /hop command is used.
I know that /hop already rejoins the channel with the memberkey (if +k mode exists); but, in some situations, the user might want to specify their own key. For example, on an IRCX server, the user would be able specify an OWNERKEY or a HOSTKEY with /hop instead of having to make a custom cycle alias just to do this.
I don't have a problem with scripting my own alias, except that it closes the channel window when I part before rejoining, and that's the main reason why I want to be able to do it with /hop.
|
|
|
|
Joined: Jan 2003
Posts: 3,012
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 3,012 |
i don't see the resoning.. hop is to rejoin a channel that ur presently in. You said it yourself mirc includes the key if one is present. Now, /hop does its job, what is the reasonging for a key switch? The only possible time u would need a key switch is if the split second it took u to rejoin someone set a key..
Sorry, maybe its just late, maybe im just tired, don't see a need for it.
-KingTomato
|
|
|
|
Joined: Dec 2002
Posts: 155
Vogon poet
|
OP
Vogon poet
Joined: Dec 2002
Posts: 155 |
Read the second half of the second paragraph again...
|
|
|
|
Joined: Jan 2003
Posts: 3,012
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 3,012 |
-void- i claim lack of sleep
Last edited by KingTomato; 16/07/03 08:26 AM.
-KingTomato
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
alias jump { /hop if ($1 == -k) { mode $me +h $2 } } /jump -k <key>
new username: tidy_trax
|
|
|
|
Joined: Dec 2002
Posts: 155
Vogon poet
|
OP
Vogon poet
Joined: Dec 2002
Posts: 155 |
Does that alias even work for you? Because it doesn't for me. Last time I checked user mode "h" was unsupported (for normal users, at least).
What's the urge of posting something that doesn't work on all servers? Not even did you mention that it might not work on every server or anything. Sheesh...
Last edited by Strider; 16/07/03 09:56 PM.
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
For example, on an IRCX server, the user would be able specify an OWNERKEY or a HOSTKEY thats what you asked for. on ircX mode $me +h works. so in future dont give an example that my script will work on, when you dont want it for that specific server
new username: tidy_trax
|
|
|
|
Joined: Dec 2002
Posts: 155
Vogon poet
|
OP
Vogon poet
Joined: Dec 2002
Posts: 155 |
It works? ON WHICH FREAKING IRCX SERVER?!
It doesn't work on the MS Exchange Servers, it doesn't work on IRCXPro and it doesn't work on IRCP.
WHERE DOES IT WORK ON THEN?!
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
my friends server is ircXpro and it works fine.
new username: tidy_trax
|
|
|
|
Joined: Dec 2002
Posts: 155
Vogon poet
|
OP
Vogon poet
Joined: Dec 2002
Posts: 155 |
Your friend must be an IRC OP! Next time, make sure please.
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
my friend is an irc op but im not. and it works for me. i get it that your ungrateful so please dont reply to me i have nothing more to say.
new username: tidy_trax
|
|
|
|
Joined: Dec 2002
Posts: 155
Vogon poet
|
OP
Vogon poet
Joined: Dec 2002
Posts: 155 |
Ungrateful for something that doesn't even work?! That's new to me...
And if it does work, it must be an IRCXPro version that was created after May 23, 2003 (the date of the one I tested it on). IRCXPro isn't even a popular IRCX server (not that there's a popular IRCX server, but still).
If it doesn't work on all servers and not even on all IRCX servers, I don't see why you should've posted that alias in the first time. You just tried to look smart; that's my guess. At least you could've said that it might not work on all IRCX servers, but you didn't even do that.
|
|
|
|
Joined: Feb 2003
Posts: 2,812
Hoopy frood
|
Hoopy frood
Joined: Feb 2003
Posts: 2,812 |
Actually, this would be useful for any server, not just IRCX... as the original intended purpose of /hop (as seen in earlier versions of mIRC when /hop was actually a stock alias) is to be a quick way of skipping from channel to channel without having to issue separate /part and /join commands.
/hop /part # | /join #$$1
It's only a nice side effect that the new /hop command cycles the active channel. Khaled even added the -c switch later so you can specify which #channel to cycle.
Without the -c switch though, /hop is meant to /join a new channel... so you would expect it to accept a key parameter like /join does.
- Raccoon PS. It's interesting to look back at the old aliases and see how they progressed over the years. I might post these later.
__ Edit: __ After taking a closer look, /debug reveals that /hop does infact send the channel key to the server in the /join command... HOWEVER, it also places that key in your "part message" for servers which support it. A rather nasty security hole.
(in #chan1) /hop #chan2 key -> irc.Prison.NET PART #chan1 :key -> irc.Prison.NET JOIN #chan2 key
- Raccoon
Last edited by Raccoon; 17/07/03 02:54 AM.
Well. At least I won lunch. Good philosophy, see good in bad, I like!
|
|
|
|
Joined: Dec 2002
Posts: 155
Vogon poet
|
OP
Vogon poet
Joined: Dec 2002
Posts: 155 |
Weird... I just tested "/hop key" and it only sends "key" as a part message.
This is what i got:
-> server PART %#chan :key -> server JOIN %#chan
(after edit): Oh wait. What you mentioned happens only when you use it to join another channel. I should put more attention on what I read...
Well, it kind of works when you join a new channel (with that serious security bug); but sadly, it doesn't work for the same channel even if you specify the name of the channel, as if you were joining another one.
Last edited by Strider; 17/07/03 04:25 AM.
|
|
|
|
Joined: Feb 2003
Posts: 2,812
Hoopy frood
|
Hoopy frood
Joined: Feb 2003
Posts: 2,812 |
Well. At least I won lunch. Good philosophy, see good in bad, I like!
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
i tested in on 2 ircXpro servers created before when you said and they both worked so obviously im going to post it.
new username: tidy_trax
|
|
|
|
Joined: Dec 2002
Posts: 155
Vogon poet
|
OP
Vogon poet
Joined: Dec 2002
Posts: 155 |
Well, even worse. It doesn't work in a newer version, which means that it might have been a bug.
This is what I get: Permission Denied- You're not an IRC operator
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
then i dont care coz it works for me
new username: tidy_trax
|
|
|
|
Joined: Dec 2002
Posts: 2,985
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,985 |
/hop is not an IRC command on most (all?) IRCd's, it's a function built into mIRC (and perhaps some other chat programmes)
/debug @Raw:
-> qld-chat.bigpond.com PART #Help.Services -> qld-chat.bigpond.com JOIN #Help.Services <- :Watchdog!CN@=rlAXM-539-378-107-039.nsw.bigpond.net.au PART #Help.Services <- :Watchdog!CN@=rlAXM-539-378-107-039.nsw.bigpond.net.au JOIN :#Help.Services -> qld-chat.bigpond.com MODE #Help.Services <- :ChanServ!RoomService@ircservices.bigpond.com MODE #Help.Services +o Watchdog <- :qld-chat.bigpond.com 324 Watchdog #Help.Services +enrtL <- :qld-chat.bigpond.com 329 Watchdog #Help.Services 1055390768
See the PART then JOIN...
Some IRCd's may have a command "/hop" for something or other which may be an oper-only command.
|
|
|
|
Joined: Feb 2003
Posts: 2,812
Hoopy frood
|
Hoopy frood
Joined: Feb 2003
Posts: 2,812 |
I dont think anyone here has suggested HOP as being an IRCd command. I don't know of any IRCd that has ever had it as a server command.
The issue here is that mIRC isn't sending a specified channel key in the JOIN command when you're simply cycling a channel, only when you're hoping to a new channel. It's also sending the key in your PART message, which is a bit of a security breech. (Looks like a simple mistake in handling "$2-" parameters.)
- Raccoon
Well. At least I won lunch. Good philosophy, see good in bad, I like!
|
|
|
|
Joined: Dec 2002
Posts: 2,985
Hoopy frood
|
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.
|
|
|
|
Joined: Dec 2002
Posts: 1,321
Hoopy frood
|
Hoopy frood
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
|
|
|
|
Joined: Dec 2002
Posts: 2,809
Hoopy frood
|
Hoopy frood
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.
|
|
|
|
Joined: Dec 2002
Posts: 1,527
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,527 |
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
|
|
|
|
Joined: Dec 2002
Posts: 155
Vogon poet
|
OP
Vogon poet
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
|
|
|
|
Joined: Dec 2002
Posts: 155
Vogon poet
|
OP
Vogon poet
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.
|
|
|
|
Joined: Dec 2002
Posts: 2,809
Hoopy frood
|
Hoopy frood
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.
|
|
|
|
Joined: Dec 2002
Posts: 155
Vogon poet
|
OP
Vogon poet
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.
|
|
|
|
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
//if ( khaled isgod ) echo yes | else echo no
|
|
|
|
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
|
|
|
|
|