Difference between revisions of "Category:Raws"
(didnt know RFC 1459 links to a page. Fixed sentence.) |
m |
||
(6 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
When the IRC server send you information it contains either a command or a RAW numeric. The numerics are a supplement to the normal events (NOTICE/PRIVMSG/MODE/etc.) not a replacement. Because raw events receive the information from the server in its native form, they give you maximum flexibility in regards to how you choose to use it or present it to the user of your script. | When the IRC server send you information it contains either a command or a RAW numeric. The numerics are a supplement to the normal events (NOTICE/PRIVMSG/MODE/etc.) not a replacement. Because raw events receive the information from the server in its native form, they give you maximum flexibility in regards to how you choose to use it or present it to the user of your script. | ||
Line 5: | Line 4: | ||
To read more about the IRC RFC, look here: RFC 1459 | To read more about the IRC RFC, look here: RFC 1459 | ||
− | == Syntax== | + | === Syntax === |
To actually react on numeric-raws, you have to use: | To actually react on numeric-raws, you have to use: | ||
− | raw <numeric>:<matchtext>:{ commands } | + | raw [$]<numeric>:<matchtext>:{ commands } |
− | '''Note''' that raw-events are just like "normal" events, like [[On_text|On Text]] or [[On_notice|On Notice]]. That means that you '''can't''' use them in an alias or in another event. | + | '''Note''' that raw-events are just like "normal" events, like [[On_text|On Text]] or [[On_notice|On Notice]]. That means that you '''can't''' use them in an alias or in another event. If you are using ''$'' infront of the numeric, you have to use a regex-based matchtext. |
− | == Example == | + | === Example === |
− | + | For example you get several numeric raws when you join a channel: | |
− | *[[Raw_332|332]] - containing the topic of the channel | + | *[[Raw_332|332]] - containing the topic of the channel (like when using [[Topic|/topic]]) |
*[[Raw_333|333]] - containing the one who has set the topic and when it was set | *[[Raw_333|333]] - containing the one who has set the topic and when it was set | ||
− | *[[Raw_353|353]] - containing the names on the channel ( | + | *[[Raw_353|353]] - containing the names on the channel (like when using [[Names|/names]]) |
*[[Raw_366|366]] - containing the message that the list of names has ended | *[[Raw_366|366]] - containing the message that the list of names has ended | ||
− | *[[Raw_324|324]] - containing the modes that are currently set | + | *[[Raw_324|324]] - containing the modes that are currently set (like when using [[Mode|/mode]]) |
*[[Raw_329|329]] - containing the creation date of the channel | *[[Raw_329|329]] - containing the creation date of the channel | ||
Latest revision as of 22:11, 30 April 2017
When the IRC server send you information it contains either a command or a RAW numeric. The numerics are a supplement to the normal events (NOTICE/PRIVMSG/MODE/etc.) not a replacement. Because raw events receive the information from the server in its native form, they give you maximum flexibility in regards to how you choose to use it or present it to the user of your script.
To read more about the IRC RFC, look here: RFC 1459
Syntax
To actually react on numeric-raws, you have to use:
raw [$]<numeric>:<matchtext>:{ commands }
Note that raw-events are just like "normal" events, like On Text or On Notice. That means that you can't use them in an alias or in another event. If you are using $ infront of the numeric, you have to use a regex-based matchtext.
Example
For example you get several numeric raws when you join a channel:
- 332 - containing the topic of the channel (like when using /topic)
- 333 - containing the one who has set the topic and when it was set
- 353 - containing the names on the channel (like when using /names)
- 366 - containing the message that the list of names has ended
- 324 - containing the modes that are currently set (like when using /mode)
- 329 - containing the creation date of the channel
If you e.g. want to echo the creation date of the channel to your status window, you would have to use:
; raw 329 returns: <yournick> <#channel> <creation time in unix format> raw 329:*: { echo -a $2 was created at: $asctime($3) }
If you want to halt mIRC's default output in connection with a raw-event, you can use /haltdef. For example:
raw 332:*: { haltdef }
This example would make mIRC not show the topic of a channel you have joined.
Subcategories
This category has the following 53 subcategories, out of 53 total.
R
Pages in category "Raws"
The following 200 pages are in this category, out of 206 total.
(previous page) (next page)$
R
- Raw
- Raw 001
- Raw 002
- Raw 003
- Raw 004
- Raw 005
- Raw 008
- Raw 015
- Raw 016
- Raw 017
- Raw 200
- Raw 201
- Raw 202
- Raw 203
- Raw 204
- Raw 205
- Raw 206
- Raw 208
- Raw 209
- Raw 211
- Raw 212
- Raw 213
- Raw 215
- Raw 216
- Raw 217
- Raw 218
- Raw 219
- Raw 221
- Raw 228
- Raw 236
- Raw 237
- Raw 238
- Raw 241
- Raw 242
- Raw 243
- Raw 244
- Raw 246
- Raw 247
- Raw 248
- Raw 249
- Raw 250
- Raw 251
- Raw 252
- Raw 253
- Raw 254
- Raw 255
- Raw 256
- Raw 257
- Raw 258
- Raw 259
- Raw 270
- Raw 271
- Raw 272
- Raw 275
- Raw 280
- Raw 281
- Raw 282
- Raw 283
- Raw 284
- Raw 286
- Raw 287
- Raw 290
- Raw 291
- Raw 301
- Raw 302
- Raw 303
- Raw 304
- Raw 305
- Raw 306
- Raw 311
- Raw 312
- Raw 313
- Raw 314
- Raw 315
- Raw 317
- Raw 318
- Raw 319
- Raw 321
- Raw 322
- Raw 323
- Raw 324
- Raw 329
- Raw 330
- Raw 331
- Raw 332
- Raw 333
- Raw 334
- Raw 338
- Raw 340
- Raw 341
- Raw 343
- Raw 346
- Raw 347
- Raw 351
- Raw 352
- Raw 353
- Raw 354
- Raw 355
- Raw 362
- Raw 363
- Raw 364
- Raw 365
- Raw 366
- Raw 367
- Raw 368
- Raw 369
- Raw 371
- Raw 372
- Raw 374
- Raw 375
- Raw 376
- Raw 381
- Raw 382
- Raw 391
- Raw 396
- Raw 398
- Raw 401
- Raw 402
- Raw 403
- Raw 404
- Raw 405
- Raw 406
- Raw 408
- Raw 409
- Raw 411
- Raw 412
- Raw 413
- Raw 414
- Raw 416
- Raw 417
- Raw 421
- Raw 422
- Raw 423
- Raw 431
- Raw 432
- Raw 433
- Raw 436
- Raw 437
- Raw 438
- Raw 439
- Raw 441
- Raw 442
- Raw 443
- Raw 451
- Raw 461
- Raw 462
- Raw 464
- Raw 465
- Raw 467
- Raw 468
- Raw 471
- Raw 472
- Raw 473
- Raw 474
- Raw 475
- Raw 477
- Raw 478
- Raw 479
- Raw 481
- Raw 482
- Raw 483
- Raw 484
- Raw 485
- Raw 486
- Raw 489
- Raw 491
- Raw 493
- Raw 494
- Raw 495
- Raw 496
- Raw 497
- Raw 498
- Raw 501
- Raw 502
- Raw 511
- Raw 512
- Raw 513
- Raw 514
- Raw 515
- Raw 516
- Raw 517
- Raw 518
- Raw 519
- Raw 520
- Raw 524
- Raw 530
- Raw 531
- Raw ERROR
- Raw INVITE
- Raw JOIN
- Raw KICK
- Raw KILL
- Raw MODE
- Raw NICK
- Raw NOTICE
- Raw PART
- Raw PING
- Raw PONG
- Raw PRIVMSG