mIRC Home    About    Download    Register    News    Help

Print Thread
#188982 02/11/07 03:33 PM
Joined: Oct 2007
Posts: 92
N
Babel fish
OP Offline
Babel fish
N
Joined: Oct 2007
Posts: 92
on 1:part:#triviamaniac: { rejoins }

alias rejoins { regexhere }

is there a regex that will make the bot rejoin
like


regexhere = join #triviamaniac

or simply can i make this "join #triviamaniac" into regex?

Last edited by nomer2007; 02/11/07 03:53 PM.
Joined: Oct 2007
Posts: 51
T
Babel fish
Offline
Babel fish
T
Joined: Oct 2007
Posts: 51
you don't even need regex there.

on *:part:#triviamaniac:{ join $chan }

if you have a straight rejoin blocker (can't rejoin until N seconds have passed), in the IRC network you go to, add a timer.

Joined: Oct 2007
Posts: 92
N
Babel fish
OP Offline
Babel fish
N
Joined: Oct 2007
Posts: 92
I know that i can do that what i'm asking is if it's possible to do it in regex grin

Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
on $*:PART:/(#yourchan|#anotherchan)/g:.timer 1 1 join $regml(1)

Red = Regex $ initiator
Blue = Regular Expressions
Orange = Command


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
Lpfix5 #188987 02/11/07 04:41 PM
Joined: Oct 2007
Posts: 92
N
Babel fish
OP Offline
Babel fish
N
Joined: Oct 2007
Posts: 92
isn't there a whole "join #channel" in regex?

Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031
Kinda looks like you want to encode something without using $encode().

RoCk #188992 02/11/07 05:19 PM
Joined: Oct 2007
Posts: 92
N
Babel fish
OP Offline
Babel fish
N
Joined: Oct 2007
Posts: 92
something like that..
so can it be done?

Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
Im not sure what you want because regex has no hidden join #channel

I set it up has $regml to return the found match if any


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
Lpfix5 #189006 02/11/07 08:08 PM
Joined: Oct 2003
Posts: 214
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Oct 2003
Posts: 214
Originally Posted By: Lpfix5
on $*:PART:/(#yourchan|#anotherchan)/g:.timer 1 1 join $regml(1)

Red = Regex $ initiator
Blue = Regular Expressions
Orange = Command



Shorter would be the old method:
Code:
on me:*:part:#chan1,#chan2,#chan3: join #


Oh and i would use "on me:*:", else it would trigger each time someone leaves the channel.

Last edited by Sephiroth_; 02/11/07 08:09 PM.

one step closer to world domination
Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
LoL I know that but he asked for regex :P


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
You can't really hide it with regex and what you're suggesting looks a lot like a script that will force a user to always be in some channel of your choosing, which is rather annoying, imo. If you really wanted to, you could make the regex really complicated so that it does all kinds of checks and so on to come up with a simply /join #channel command, but that would be slow and cumbersome and wouldn't really hide it... just make it confusing.


Invision Support
#Invision on irc.irchighway.net
Riamus2 #189034 03/11/07 12:55 AM
Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
I would make a few pages of

;shfjhwurfwihur83983y73yrhfew798rye93ehwtrw3798ewds8etyhdst78t
;ew8rjfe9hsewtw8s9hse8th58htsghfdetete8gd9gsgthsetos8gd
;jtrfewiotrewjh8rsedsehtewteu8htese8htrtrase8rawhr
;;rr8qwrjrjrjrawrjawirrwrjirjqw3rjqwrjiqw8rjiwrji
COMMAND
;9234892342398453298523952352355553


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
Joined: Oct 2007
Posts: 92
N
Babel fish
OP Offline
Babel fish
N
Joined: Oct 2007
Posts: 92
thank you guys i just wanna know if that's possible.
just curious and im not planing it to the rejoin it's just an example. but going to use it on other commands
thanks again


Link Copied to Clipboard