09-26-2017, 00:12 +0200
AuthorPost
elven  03-28-2005, 21:04   | [EGG] Helper procs for colourful messages Jabber
security dept.
(Administrator)
Member since 03/2004
55 Posts
                                                                                                                              
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
proc b {str} {
    return "\002${str}\002"
}

proc u {str} {
    return "\037${str}\037"
}

proc r {str} {
    return "\026${str}\026"
}

proc c {str fg {bg -1}} {
    if {$bg != -1} {
        return "\003${fg},${bg}${str}\003"
    } {
        return "\003${fg}${str}\003"
    }
}

# Usage:

putmsg $channel "Hi there, [u "This is underlined, [b "and this bold"]"]"
# Yes, those weird doublequotes work.


irc.swordcoast.net
This post was edited 2 times, last on 08-12-2009, 21:15 by thommey
Possible  05-28-2005, 14:47   ICQ  Homepage
(Moderator)
Member since 05/2005
4 Posts
Location: Essen / NRW / Germany
proc r without "[join " ;)

EDIT: thanks, fixed that.. (bUrN)
Advanced options for this topic:

Ignore this topic (Do not list this topic in the "unread topics" search. You are currently not ignoring this topic.)
Hide this topic (Hidden topics are not displayed in the topics list. This topic is currently not hidden.)
Go to forum

Unclassified NewsBoard 1.5.3-d | © 2003-4 by Yves Goergen