mIRC Home    About    Download    Register    News    Help

Print Thread
#33573 02/07/03 06:17 AM
Joined: Jul 2003
Posts: 7
G
Gogatee Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
G
Joined: Jul 2003
Posts: 7
one of the raws that is activated on join contains the created date.

To avoid this doubling up, (and the Modes:) I want to put it in another raw, so one raw that is activated on join, does everything, this is ok for the modes (just using $chan($2).mode however, how can i make it so it gets the Creation Date?

Or is that raw the only way to get it?

#33574 02/07/03 07:07 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
on ^*:JOIN:#: {
  if ($nick == $me) { 
    .chanserv info $chan
    set -u30 %chan $chan
  }
  halt 
}

on ^*:notice:*Registered*:*: { haltdef |  
  if (*ChanServ iswm $nick) { echo -at %chan $strip($1-,b) | halt } 
}

#33575 02/07/03 07:17 AM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
I personally use this.

RAW 324:*: {
; echo $colour(notice) -ai2 - $2 is mode: $3-
set -u5 %mode. [ $+ [ $2 ] ] $3-
haltdef
}

RAW 329:*: {
echo $colour(notice) -si2 - $2 is mode: %mode. [ $+ [ $2 ] ] <> Created: $asctime($3,mm/dd/yy hh:nn:ss TT) $4-
haltdef
}

- Raccoon


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
#33576 02/07/03 10:16 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Heh. Nice. smile

#33577 02/07/03 11:16 AM
Joined: Jul 2003
Posts: 7
G
Gogatee Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
G
Joined: Jul 2003
Posts: 7
rac, i did try that, however

when i get auto-oped by the channel service bot, it doubles up.

Any ideas on how to cancel this double up out?..

with the modes raw (324) you can just put the modes in another raw that doesn't double up.. however the created date.. is what i'm asking about.. so it dont double

EDIT: well i tried putting the $chan($2).mode into a number of spots.. including 366 333 and 332

none of them can have the $chan($2).mode ($2) is the channel var in that case.

Last edited by Gogatee; 02/07/03 11:37 AM.
#33578 02/07/03 03:13 PM
Joined: Apr 2003
Posts: 426
Fjord artisan
Offline
Fjord artisan
Joined: Apr 2003
Posts: 426
You could try stopping them with a var statment and other thingy, but why?


The reason for this is because when you are opped, a server re-sends the channel modes.

Sometimes you will see this twice, others you won't (its very strange, but meh).


This is because some modes can only be seen by a channel operator.


--------
mIRC - fun for all the family (except grandma and grandpa)
#33579 02/07/03 09:59 PM
Joined: Jul 2003
Posts: 7
G
Gogatee Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
G
Joined: Jul 2003
Posts: 7
it only occurs when i am opped automatically when i Join.

It doesn't occur any other time.

#33580 03/07/03 01:48 AM
Joined: Jul 2003
Posts: 7
G
Gogatee Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
G
Joined: Jul 2003
Posts: 7
Ok, it took like ages for me to figure it out, but i have figured out the var method.. I have never spent 20 minutes trying to figure one thing out.. lol

Code:
  
raw 324:*: {
  if ( %modes. [ $+ [ $2 ] ] == $null) {
    set %modes. [ $+ [ $2 ] ] yes
    echo $2 $dlac Modes: $+ $dlh $3- 
    .timer 1 5 /unset %modes. [ $+ [ $2 ] ]
    halt
  }
  else { halt }
}
raw 329:*: {
  if ( %created. [ $+ [ $2 ] ] == $null) {
    set %created. [ $+ [ $2 ] ] yes
    echo $2 $dlac Created: $+ $dlh $asctime($3) 
    echo $2 $dlac End Of  $+ $dlh $2 $dl $+ Info 
    .timer 1 5 /unset %created. [ $+ [ $2 ] ]   
    halt
  }
  else { halt }
}


Link Copied to Clipboard