313 nick :is an IRC Operator (scorrete la tabella per verificare .... ehmm questo non lo mettiamo ok?)
Inizialmente il nostro scopo puo' essere italianizzare le risposte, la sistassi e' molto semplice infatti bastera' inserire nei remote questo codice:
Cosa abbiamo fatto? Semplice abbiamo detto al mirc che quando ci sara' l'evento in questone, dovra' essere eseguito un echo -a e' un IRCOP . Ma non abbiamo detto tutto infatti abbiamo messo | halt alla fine, per far si che il mirc non ritorni il testo di default che ci manda il server.
Ora analizziamo la sintassi della tabella per capire come possiamo iserire i valori che cambiano a seconda dell'evento o del nick. Abbiamo fatto l'esempio dell'ircop, e quindi ci conviene contiuare con quello. Cosa manca nella nostra risposta? Bhe e' semplice un identificatore o un valore che richiamato ci ritorni il nick dell'ircop. Nel evento che abiamo preso in cosiderazione esce il comando echo -a e' un IRCOP senza pero' specificare il nick, guardiamo la sintassi del raw 313, e vedremo nick :is an IRC Operator
Abbiamo capito quindi,e se non l'avete capito ve lo dico ora, che possiamo stravolgere la sintassi della tabella a seconda delle esigenze, non e' richiesto che $2 e $3 stiano all'inizio e la risposta alla fine.
Questo ci porta ad una fase piu interessate, usare il raw con gli if elseif else, per ora vi faro' solo un esempio per farvi capire che basta usare la fantasia:
ora sta a voi studiarvi la tabella qui sotto. Se mi fossi sbagliato o dimaticato qualcosa usate il forum e provero' a rispondervi.
| 000 |
| 001 |
Welcome to the Internet Relay Network nickname |
| 002 |
:Your host is server, running version ver |
| 003 |
:This server was created datetime |
| 004 |
server ver usermode chanmode |
| 005a |
:map |
| 005b |
protocols :are available on this server |
| 007 |
:End of /MAP |
| 008 |
num :: Server notice mask (hex) |
| 200 |
| 211 |
:connection sendq sentmsg sentbyte recdmsg recdbyte :open |
| 212 |
command uses bytes |
| 213 |
C address * server port class |
| 214 |
N address * server port class |
| 215 |
I ipmask * hostmask port class |
| 216 |
k address * username details |
| 217 |
P port ?? ?? |
| 218 |
Y class ping freq maxconnect sendq |
| 219 |
char :End of /STATS report |
| 221 |
mode |
| 222a |
nickmask :comment |
| 222b |
B server * ?? ?? ?? |
| 223 |
E hostmask * username ?? ?? |
| 224 |
D ipmask * username ?? ?? |
| 241 |
L address * server ?? ?? |
| 242 |
:Server Up num days, time |
| 243 |
o mask password user ?? class |
| 244 |
H address * server ?? ?? |
| 247 |
G address timestamp :reason |
| 248 |
U host * ?? ?? ?? |
| 249 |
:info |
| 250 |
:Highest connection count: total (num clients) |
| 251 |
:There are user users and invis invisible on serv servers |
| 252 |
num :operator(s) online |
| 253 |
num :unknown connection(s) |
| 254 |
num :channels formed |
| 255 |
:I have user clients and serv servers |
| 256 |
:Administrative info about server |
| 257 |
:info |
| 258 |
:info |
| 259 |
:info |
| 263 |
:Server load is temporarily too heavy. Please wait a while and try again. |
| 265 |
:Current local users: curr Max: max |
| 266 |
:Current global users: curr Max: max |
| 271 |
nick mask |
| 272 |
:End of Silence List |
| 280 |
address timestamp reason |
| 281 |
:End of G-line List |
| 290 |
:num ***** topic ***** |
| 291 |
:text |
| 292 |
: ***** Go to #dalnethelp if you have any further questions ***** |
| 293 |
:text |
| 294 |
:Your help-request has been forwarded to Help Operators |
| 298 |
nick :Nickname conflict has been resolved |
| 300 |
| 301 |
nick :away |
| 302 |
:userhosts |
| 303 |
:nicknames |
| 305 |
:You are no longer marked as being away |
| 306 |
:You have been marked as being away |
| 307 |
:userips |
| 310 |
nick :looks very helpful |
| 311 |
nick username address * :info |
| 312a |
nick server :info |
| 312b |
nick server :signoff |
| 313 |
nick :is an IRC Operator |
| 314 |
nick username address * :info |
| 315 |
request :End of /WHO list. |
| 317 |
nick seconds signon :info |
| 318 |
request :End of /WHOIS list. |
| 319 |
nick :channels |
| 321 |
Channel :Users Name |
| 322 |
channel users :topic |
| 323 |
:End of /LIST |
| 324 |
channel mode |
| 328 |
channel :url |
| 329 |
channel time |
| 331 |
channel :No topic is set. |
| 332 |
channel :topic |
| 333 |
channel nickname time |
| 341 |
nick channel |
| 351 |
version .debug server :info |
| 352 |
channel username address server nick flags :hops info |
| 353 |
= channel :names |
| 364 |
server hub :hops info |
| 365 |
mask :End of /LINKS list. |
| 366 |
channel :End of /NAMES list. |
| 367 |
channel ban nick time |
| 368 |
channel :End of Channel Ban List |
| 369 |
request :End of WHOWAS |
| 371 |
:info |
| 372 |
:- info |
| 374 |
:End of /INFO list. |
| 375 |
:- server Message of the Day - |
| 376 |
:End of /MOTD command. |
| 377 |
:- info |
| 378 |
:- info |
| 381 |
:You are now an IRC Operator |
| 382 |
file :Rehashing |
| 391 |
server :time |
| 400 |
| 401a |
nickname :No such nick |
| 401b |
* :Target left UnderNet. Failed to deliver: message |
| 402 |
server :No such server |
| 403 |
channel :No such channel |
| 404 |
channel :Cannot send to channel |
| 405 |
channel :You have joined too many channels |
| 406 |
nickname :There was no such nickname |
| 407 |
target :Duplicate recipients. No message delivered |
| 409 |
:No origin specified |
| 411 |
:No recipient given (command ) |
| 412 |
:No text to send |
| 413 |
mask :No toplevel domain specified |
| 414 |
mask :Wildcard in toplevel Domain |
| 416 |
command :Too many lines in the output, restrict your query |
| 421 |
command :Unknown command |
| 422 |
:MOTD File is missing |
| 423 |
server :No administrative info available |
| 431 |
:No nickname given |
| 432 |
nickname :Erroneus Nickname |
| 433a |
nickname :Nickname is already in use. |
| 433b |
nickname :Nickname is registered to someone else. |
| 436 |
nickname :Nickname collision KILL |
| 437 |
channel :Cannot change nickname while banned on channel |
| 438 |
nick :Nick change too fast. Please wait sec seconds. |
| 439 |
target :Target change too fast. Please wait sec seconds. |
| 441 |
nickname channel :They aren't on that channel |
| 442 |
channel :You're not on that channel |
| 443 |
nickname channel :is already on channel |
| 445 |
:SUMMON has been disabled |
| 446 |
:USERS has been disabled |
| 451 |
command :Register first. |
| 455 |
:Your username ident contained the invalid character(s) chars and has been changed to new. Please use only the characters 0-9 a-z A-Z _ - or . in your username. Your username is the part before the @ in your email address. |
| 461 |
command :Not enough parameters |
| 462 |
:You may not reregister |
| 467 |
channel :Channel key already set |
| 468 |
channel :Only servers can change that mode |
| 471 |
channel :Cannot join channel (+l) |
| 472 |
char :is unknown mode char to me |
| 473 |
channel :Cannot join channel (+i) |
| 474 |
channel :Cannot join channel (+b) |
| 475 |
channel :Cannot join channel (+k) |
| 477a |
channel :You need a registered nick to join that channel. |
| 477b |
channel :Channel doesn't support modes |
| 478 |
channel ban :Channel ban/ignore list is full |
| 481 |
:Permission Denied- You're not an IRC operator |
| 482 |
channel :You're not channel operator |
| 483 |
:You cant kill a server! |
| 484 |
nick channel :Cannot kill, kick or deop channel service |
| 491 |
:No O-lines for your host |
| 500 |
| 501 |
:Unknown MODE flag |
| 502 |
:Cant change mode for other users |
| 510 |
:You must resolve the nickname conflict before you can proceed |
| 511 |
mask :Your silence list is full |
| 512a |
address :No such gline |
| 512b |
:Authorization required to use Registered Nickname nick |
| 512c |
nick :Maximum size for WATCH-list is num entries |
| 513 |
If you can't connect, type /QUOTE PONG code or /PONG code |
| 600 |
| 600 |
nick userid host time :logged offline |
| 601 |
nick userid host time :logged online |
| 602 |
nick userid host time :stopped watching |
| 603 |
:You have mine and are on other WATCH entries |
| 604 |
nick userid host time :is online |
| 605 |
nick userid host time :is offline |
| 606 |
:nicklist |
| 607 |
:End of WATCH query |