Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple gateways #47

Closed
pciavald opened this issue Oct 18, 2016 · 2 comments
Closed

multiple gateways #47

pciavald opened this issue Oct 18, 2016 · 2 comments

Comments

@pciavald
Copy link

pciavald commented Oct 18, 2016

Hello,
I'm trying to configure a second gateway, with this config. However only the second gateway is taken into account. Am I misusing the syntax ?

[irc]
    [irc.brand]
    Server="localhost:6667"
    UseTLS=true
    Nick="brand"
    RemoteNickFormat="<{NICK}> "

    [irc.w3c]
    Server="irc.w3.org:6667"
    UseTLS=false
    Nick="brand"
    RemoteNickFormat="<{NICK}> "

[mattermost]
    [mattermost.irc]
    useAPI=false
    URL="https://mattermost.brand.com/hooks/ratoksdhjkdfjhiprswms8qoyibh"
    BindAddress="localhost:9999"
    PrefixMessagesWithNick=true
    NoTLS=false
    ShowJoinPart=false
    RemoteNickFormat="<{NICK}> "

    [mattermost.wpwg]
    useAPI=false
    URL="https://mattermost.brand.com/hooks/s1sq8m1skdhfoshfoljsd8ce4r"
    BindAddress="localhost:9998"
    PrefixMessagesWithNick=true
    NoTLS=false
    ShowJoinPart=false
    RemoteNickFormat="<{NICK}> "

    [mattermost.wpay]
    useAPI=false
    URL="https://mattermost.brand.com/hooks/i8q6kdsfhksdjfhk3jh6z33o"
    BindAddress="localhost:9997"
    PrefixMessagesWithNick=true
    NoTLS=false
    ShowJoinPart=false
    RemoteNickFormat="<{NICK}> "

[[gateway]]
name="gateway1"
enable=true
    [[gateway.in]]
    account="irc.w3c"
    channel="#wpwg"

    [[gateway.out]]
    account="mattermost.wpwg"
    channel="wpwg"

[[gateway]]
name="gateway2"
enable=true
    [[gateway.in]]
    account="irc.w3c"
    channel="#wpay"

    [[gateway.out]]
    account="mattermost.wpay"
    channel="wpay"
@42wim
Copy link
Owner

42wim commented Oct 18, 2016

No that should work, are you running from master ? Could you paste -debug output ?
You've also pasted your incoming webhooks, better remove those (security/privacy)

@42wim 42wim closed this as completed Oct 29, 2016
@pciavald
Copy link
Author

pciavald commented Nov 1, 2016

I pulled from master, now it works like a charm. Thank you.
By the way, the webhooks were already obfuscated, these are not the real ones.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants