mIRC Home    About    Download    Register    News    Help

Print Thread
motd in @ window? #91176 20/07/04 04:40 PM
Joined: Jul 2003
Posts: 742
MTec89 Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
how do you put motd in @ window instead of status?


http://MTec89Net.com
irc.freenode.net #MTec89Net
Re: motd in @ window? #91177 20/07/04 05:17 PM
Joined: Dec 2002
Posts: 788
C
Coolkill Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
You'd actually need some sort of script, for example:

raw *:*:{
if ($numeric == 375) { window $+(@motd.,$server) }
if ($numeric == 372) { aline $+(@motd.,$server) $3- }
if ($numeric == 376) { aline $+(@motd.,$server) --- END OF MOTD --- }
}

Re: motd in @ window? #91178 20/07/04 06:46 PM
Joined: Jul 2003
Posts: 742
MTec89 Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
it works but this is in status:

Code:
* /aline: insufficient parameters (line 33, script1.ini)
-
- 
-                               Server Information
-
* /aline: insufficient parameters (line 33, script1.ini)
-
- 
-      Welcome To irc.MTec89.com!                                               
-       Running on a Intel Celeron 1.10 Ghz machine                             
-       with Windows XP professional SP1 Installed                            
-       And 128MB SDRAM                                                         
-
* /aline: insufficient parameters (line 33, script1.ini)
-
-                                                                               
-      The owner of this server is MTec89 <MTec89@MTec89.com>                   
-
* /aline: insufficient parameters (line 33, script1.ini)
-
-                                                                               
-
* /aline: insufficient parameters (line 33, script1.ini)
-
-                                                                               
-                                 Disclaimer                                 
-
* /aline: insufficient parameters (line 33, script1.ini)
-


i wanted nothing of ther motd to be in the status


and if i skip motd (th option)
Code:
Message of the Day, irc.mtec89.com
-
* /aline: insufficient parameters (line 33, script1.ini)
-
* /aline: insufficient parameters (line 33, script1.ini)
-
* /aline: insufficient parameters (line 33, script1.ini)
-
* /aline: insufficient parameters (line 33, script1.ini)
-
* /aline: insufficient parameters (line 33, script1.ini)
-
* /aline: insufficient parameters (line 33, script1.ini)
-
* /aline: insufficient parameters (line 33, script1.ini)
-
* /aline: insufficient parameters (line 33, script1.ini)
-
* /aline: insufficient parameters (line 33, script1.ini)
-
* /aline: insufficient parameters (line 33, script1.ini)
-
* /aline: insufficient parameters (line 33, script1.ini)
-
* /aline: insufficient parameters (line 33, script1.ini)
-
* /aline: insufficient parameters (line 33, script1.ini)
-
* /aline: insufficient parameters (line 33, script1.ini)
-
* /aline: insufficient parameters (line 33, script1.ini)
-
* /aline: insufficient parameters (line 33, script1.ini)
etc


http://MTec89Net.com
irc.freenode.net #MTec89Net
Re: motd in @ window? #91179 20/07/04 07:10 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
  • raw *:*:{
    if ($numeric == 375) {
    close -@ $+(@motd.,$server)
    window $+(@motd.,$server)
    }
    if ($numeric == 372) { echo $+(@motd.,$server) $3- }
    if ($numeric == 376) { echo $+(@motd.,$server) --- END OF MOTD --- }
    }


New username: hixxy
Re: motd in @ window? #91180 20/07/04 07:19 PM
Joined: Dec 2002
Posts: 788
C
Coolkill Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
My fault, edit

if ($numeric == 372) { aline $+(@motd.,$server) $3- }

to read:

if (($numeric == 372) && ($3-)) { aline $+(@motd.,$server) $3- }

Re: motd in @ window? #91181 20/07/04 07:56 PM
Joined: Jul 2003
Posts: 742
MTec89 Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
thanks


http://MTec89Net.com
irc.freenode.net #MTec89Net